Skip to content
New issue

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 not reflected #1

Open
Spica2 opened this issue Mar 3, 2015 · 2 comments
Open

page/list is not reflected #1

Spica2 opened this issue Mar 3, 2015 · 2 comments

Comments

@Spica2
Copy link

Spica2 commented Mar 3, 2015

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;
                }
            }
        }
    }
tobaco added a commit to tobaco/PW-AdminRestrictPageTree that referenced this issue Nov 15, 2017
@jmartsch
Copy link

This should also be merged into the module. Tested and works

@netcarver
Copy link
Owner

Just merged this and pushed to dev. @jmartsch could you test that branch and make sure everything works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants