Welcome Guest, Not a member yet? Register   Sign In
Community Auth require_role
#1

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()
    {
        if( 
$this->require_role('admin,managers') )
        { 
I also tried to use the require_min_level(6) instead of the require_role() method but it doesn't work either it just lets in the admin role.  I've also tried require_role('managers') and no go there either.

in authentication.php

PHP Code:
$config['levels_and_roles'] = array(
    
"1" => "noaccess",
    
"6" => "managers",
    
"9" => "admin"
); 

I'm not sure whats going on.
Reply


Messages In This Thread
Community Auth require_role - by deadlock0071 - 04-04-2017, 06:07 PM
RE: Community Auth require_role - by deadlock0071 - 04-04-2017, 07:36 PM
RE: Community Auth require_role - by skunkbad - 04-04-2017, 11:38 PM
RE: Community Auth require_role - by deadlock0071 - 04-05-2017, 08:47 AM
RE: Community Auth require_role - by skunkbad - 04-05-2017, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB