From 04f17aad68eb2c8d0ac520b1ce5329e192296cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 7 Sep 2017 14:46:49 +0200 Subject: [PATCH] Acl: Fix wrong permission type being set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Db/Acl.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Db/Acl.php b/lib/Db/Acl.php index f96a97b68..33c03138f 100644 --- a/lib/Db/Acl.php +++ b/lib/Db/Acl.php @@ -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;