Welcome Guest, Not a member yet? Register   Sign In
user permissions as per page basis
#5

Sorry I forgot to add the config array for Groups.

You will need to add this to a config file and load it to use the Groups.

PHP Code:
/**
 * The array which holds your user groups and their ID.
 * If you have a database table for groups, these ID's must be the same as in the database.
 */
$config['auth_groups'] = array(
 
   'admin'  => '1',
 
   'editor' => '2',
 
   'user'   => '100'
); 

Hope that helps.

The $level is stored in the users table that matches the number of the group array.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: user permissions as per page basis - by qury - 05-11-2018, 03:06 AM
RE: user permissions as per page basis - by InsiteFX - 05-11-2018, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB