Fix group acl entries being interpreted as users

This commit is contained in:
Julius Haertl
2017-02-13 22:04:35 +01:00
parent 8e890df7ab
commit b5feeeaee3

View File

@@ -91,7 +91,8 @@ class Acl extends RelationalEntity implements \JsonSerializable {
}
public function setType($type) {
if ($type === 'group') {
// FIXME: Remove when all javascript uses numeric types
if ($type === 'group' || $type === '1') {
$typeInt = Acl::PERMISSION_TYPE_GROUP;
} else {
$typeInt = Acl::PERMISSION_TYPE_USER;