[eluser]playaz[/eluser]
[quote author="Christophe-France" date="1237546515"]the problem is in the application/libraries/Auth file :
[/quote]
I have applied this earlier 'permissions' fix and it all works fine now!
Just a question though, I cannot see what the user_area(), users_area() just_user() do as they seem to not work for me. For instance, if I go to the just_user controller via the URL it still allows me to view the page although logged in as admin or editor.
Am I doing something fundamentally wrong here? Anyone else had this problem
Code:
function user_area()
{
// This is accessible to all users
$this->auth->restrict('user');
echo("user area");
}
function users_area()
{
// This is accessible to all users too
$this->auth->restrict();
echo("user area");
}
function just_user()
{
// This is accessible to only 'users'
$this->auth->restrict('user', TRUE);
echo("user area only");
}