mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-11-21 11:37:26 +01:00
fixed resource voter
This commit is contained in:
parent
88cb258c2b
commit
72fbc9e20e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue