Acl: Fix wrong permission type being set

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-09-07 14:46:49 +02:00
parent 830f8a13fc
commit 04f17aad68

View File

@@ -82,6 +82,9 @@ class Acl extends RelationalEntity implements \JsonSerializable {
}
public function setType($type) {
if(is_numeric($type)) {
return parent::setType($type);
}
// FIXME: Remove when all javascript uses numeric types
if ($type === 'group' || $type === '1') {
$typeInt = Acl::PERMISSION_TYPE_GROUP;