a-ok Posted January 25, 2018 Share Posted January 25, 2018 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 More sharing options...
a-ok Posted January 25, 2018 Author Share Posted January 25, 2018 Sorry for the drama... I guess I could just wrap the whole hook in an if ($user->hasRole())... got it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now