0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-21 20:28:11 +01:00

fixed resource voter

This commit is contained in:
Jonathan Treffler 2024-11-07 11:03:36 +01:00
parent 88cb258c2b
commit 72fbc9e20e

View file

@ -83,7 +83,7 @@ class ResourceVoter extends Voter {
$parentResource = $this->resourceService->getParentResource($resource);
if(!is_null($parentResource)) {
return $this->isResourceManager($user, $resource);
return $this->isResourceManager($user, $parentResource);
}
}