Do not return string on Acl type getter

This commit is contained in:
Julius Haertl 2017-02-03 18:35:41 +01:00
Родитель 161a6715da
Коммит dfe8bad832
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4C614C6ED2CDE6DF
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -74,7 +74,7 @@ class Acl extends RelationalEntity implements \JsonSerializable {
return [ return [
'id' => $this->id, 'id' => $this->id,
'participant' => $this->participant, 'participant' => $this->participant,
'type' => $this->getType(), 'type' => $this->getTypeString(),
'boardId' => $this->boardId, 'boardId' => $this->boardId,
'permissionEdit' => $this->getPermissionEdit(), 'permissionEdit' => $this->getPermissionEdit(),
'permissionShare' => $this->getPermissionShare(), 'permissionShare' => $this->getPermissionShare(),
@ -87,7 +87,7 @@ class Acl extends RelationalEntity implements \JsonSerializable {
* FIXME: migrate other code to const PERMISSION_TYPE_ instead of strings * FIXME: migrate other code to const PERMISSION_TYPE_ instead of strings
* iirc js uses those strings as well * iirc js uses those strings as well
*/ */
public function getType() { public function getTypeString() {
if ($this->type === Acl::PERMISSION_TYPE_GROUP) { if ($this->type === Acl::PERMISSION_TYPE_GROUP) {
return 'group'; return 'group';
} }