diff --git a/src/Grid/Service/GridService.php b/src/Grid/Service/GridService.php index 10efba92..38f26f2d 100644 --- a/src/Grid/Service/GridService.php +++ b/src/Grid/Service/GridService.php @@ -108,6 +108,8 @@ public function getGridDataForElement( ); $data['columns'][] = $columnData; + $data['isLocked'] = $element->getIsLocked(); + $data['permissions'] = $element->getPermissions(); } return $data; diff --git a/src/Response/Element.php b/src/Response/Element.php index fd8e1f8f..a13f5030 100644 --- a/src/Response/Element.php +++ b/src/Response/Element.php @@ -18,6 +18,7 @@ use OpenApi\Attributes\Property; use OpenApi\Attributes\Schema; +use Pimcore\Bundle\StudioBackendBundle\Element\Schema\Permissions; /** * @internal @@ -34,7 +35,6 @@ 'isLocked', 'creationDate', 'modificationDate', - 'permissions', ], type: 'object' )] @@ -113,4 +113,9 @@ public function getIsLocked(): bool { return $this->isLocked; } + + public function getPermissions(): Permissions + { + return new Permissions(); + } } diff --git a/src/Response/ElementInterface.php b/src/Response/ElementInterface.php index 37cd3ea4..f0ef8225 100644 --- a/src/Response/ElementInterface.php +++ b/src/Response/ElementInterface.php @@ -16,6 +16,8 @@ namespace Pimcore\Bundle\StudioBackendBundle\Response; +use Pimcore\Bundle\StudioBackendBundle\Element\Schema\Permissions; + /** * @internal */ @@ -40,4 +42,6 @@ public function getUserOwner(): int; public function getLocked(): ?string; public function getIsLocked(): bool; + + public function getPermissions(): Permissions; }