зеркало из https://github.com/nextcloud/deck.git
Do not return string on Acl type getter
This commit is contained in:
Родитель
161a6715da
Коммит
dfe8bad832
|
@ -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';
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче