Added a field in the 'users'-table in MySQL
-------------------------------------------
field:user_level
type:tinyint(16)
attr:UNSIGNED
Null:No
Default:0
if($this->tank_auth->validate_userlevel(1))
{
// show or do something...
}
The validation is simple:
a standard user gets level 0, every higher level is allowed to see the lower levels.
So if you create an admin user and give it level 9, you have 10 levels. But you can make it as high as you want.
In the example code level 0 is blocked and level 1 and up are granted access.