mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
many small resource member related improvements
This commit is contained in:
parent
8bfa9dfa29
commit
9ebae48238
9 changed files with 70 additions and 45 deletions
|
@ -60,7 +60,7 @@ class PropFindPlugin extends ServerPlugin {
|
|||
$propFind->handle(self::ORGANIZATION_FOLDER_RESOURCE_MANAGER_PERMISSIONS_PROPERTYNAME, function () use ($node) {
|
||||
try {
|
||||
$resource = $this->resourceService->findByFileId($node->getId());
|
||||
return $this->authorizationService->isGranted(["READ"], $resource) ? 'true' : 'false';
|
||||
return $this->authorizationService->isGranted(["UPDATE"], $resource) ? 'true' : 'false';
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue