I am trying to run a check to see if the current user is in a certain role with Cartalyst's Sentinel/Sentry package.
I have found Sentinel::inRole('admin')
but can't seem to get it to work. I want something like this:
if(Sentinel::getUser()->hasRole('admin'){ // do some stuff }
I've searched and searched for this and can't find an example to work with. Should I be looking more into permissions or something?
Hopefully someone out there can point me in the right direction.
Cheers