Hi everyone. My first post yey 😊
Getting to the point, I’ve been experimenting with CI, I’m really digging it.. since most sites use auth systems i checked some and here i am.
I have 2 questions:
1st. I understand that there is an “is_admin()” function and the “is_role” function, so we can limit access to a resource. Since this is based on CI Auth, is there anything like defining which directories are available for which role(s)?
Instead of having in each controller “is_role(array(“professor”, “assistent”)” just have “has_permission(segment)” for instance?
EDIT: Found the “backend/uri_permissions/” thingy :x lol
2nd. This is just a minor detail, but shouldn’t there exist a foreign_key restriction on table “users”? Regarding “role_id”? Its just for the sake of consistency..
Did i mentioned this is a great lib?
Hugs