From b5feeeaee309d6b576c513a66edf4d8a7c3d49d1 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Mon, 13 Feb 2017 22:04:35 +0100 Subject: [PATCH] Fix group acl entries being interpreted as users --- lib/Db/Acl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Db/Acl.php b/lib/Db/Acl.php index f4355ade8..5f5f25963 100644 --- a/lib/Db/Acl.php +++ b/lib/Db/Acl.php @@ -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;