We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page/list is still givin an output without a redirection.
Suggest this
public function hookAfterPageViewable(HookEvent $event) { $page = $event->object; $user = $this->user; if ($page->id == 3 || $page->id == 8) { foreach ($this->restricted_roles as $r) { if ($user->hasRole($r)) { $event->return = false; } } } }
The text was updated successfully, but these errors were encountered:
restrict access to page/list
cdd20a1
see netcarver#1
This should also be merged into the module. Tested and works
Sorry, something went wrong.
Just merged this and pushed to dev. @jmartsch could you test that branch and make sure everything works for you?
No branches or pull requests
page/list is still givin an output without a redirection.
Suggest this
The text was updated successfully, but these errors were encountered: