Skip to content

Commit

Permalink
Fixing call of controller plugin from within another plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
rarog committed Nov 4, 2017
1 parent ac00880 commit 3453a79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __invoke(int $appId, bool $checkHasDefaultValues = false)
return false;
}

if (! $this->authorizationService->isGranted('app.viewAll') && ! $this->appTable->hasUserPermissionForApp($this->zfcUserAuthentication()->getIdentity()->getId(), $app->Id)) {
if (! $this->authorizationService->isGranted('app.viewAll') && ! $this->appTable->hasUserPermissionForApp($this->getController()->zfcUserAuthentication()->getIdentity()->getId(), $app->Id)) {
return false;
}

Expand Down

0 comments on commit 3453a79

Please sign in to comment.