From dfe8bad832e83ae4b5ced6290f28c79f858ee3b5 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Fri, 3 Feb 2017 18:35:41 +0100 Subject: [PATCH] Do not return string on Acl type getter --- lib/Db/Acl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Db/Acl.php b/lib/Db/Acl.php index 04be2ac4d..d977f3f06 100644 --- a/lib/Db/Acl.php +++ b/lib/Db/Acl.php @@ -74,7 +74,7 @@ class Acl extends RelationalEntity implements \JsonSerializable { return [ 'id' => $this->id, 'participant' => $this->participant, - 'type' => $this->getType(), + 'type' => $this->getTypeString(), 'boardId' => $this->boardId, 'permissionEdit' => $this->getPermissionEdit(), 'permissionShare' => $this->getPermissionShare(), @@ -87,7 +87,7 @@ class Acl extends RelationalEntity implements \JsonSerializable { * FIXME: migrate other code to const PERMISSION_TYPE_ instead of strings * iirc js uses those strings as well */ - public function getType() { + public function getTypeString() { if ($this->type === Acl::PERMISSION_TYPE_GROUP) { return 'group'; }