Community Auth require_role |
The require_role method doesn't seem to be working for me. It logins in someone with admin role but it doesn't give access to the managers role.
in controller PHP Code: public function reg_users() in authentication.php PHP Code: $config['levels_and_roles'] = array( I'm not sure whats going on.
Just a brain fart moment... I was messing around with an if statement in the controller and it also called the require_role() method. So it was basically if require_role() with another if require_role() inside of that. I stared at that thing for the longest time and just didn't see it. Ate dinner came back, looked at it and shook my head.
Thanks for the reply. (04-05-2017, 08:47 AM)deadlock0071 Wrote: Just a brain fart moment... I was messing around with an if statement in the controller and it also called the require_role() method. So it was basically if require_role() with another if require_role() inside of that. I stared at that thing for the longest time and just didn't see it. Ate dinner came back, looked at it and shook my head. Numerous times I've been completely perplexed by a problem, spent hours on it, then had to walk away, only to come back after sleeping or taking a break and figuring it out in 5 minutes. I should just take more breaks, but it's hard when I feel like I need to get things done. |
Welcome Guest, Not a member yet? Register Sign In |