Jump to content

Check user role when using a hook (Page::editable)


a-ok
 Share

Recommended Posts

Is it possible to check what the current role is (that's logged in) via a hook? I'm running a hook on the method Page::editable and want to check what the role is before I do anything within the hook. If not via the Page::editable method... is it then possible to combine hooks?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...