Skip to content

wrightlabs/tank_auth_groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

INSTALLATION

1. Copy the contents into your CodeIgniter 2.1.0 (with Tank Auth 1.0.9 installed) directory.

2. Run the 'add-group_id-to-users.sql' file/code in your database (MySQL)

3. Replace all occurances of "$this->load->library('tank_auth');" 
  with "$this->load->library('tank_auth_groups','','tank_auth');"

Now you can use the extra tank_auth_groups functions like this..

$this->tank_auth->is_admin()

NOTE: The default admin group_id is 100 and the default user group_id is 300.

About

An extension to Tank Auth for CodeIgniter, adding minimal support for groups/roles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages