Welcome Guest, Not a member yet? Register   Sign In
Implementing RBAC for ion_auth codeigniter
#5

Just write your own check_login() function in MY_Controller - and specify what you need for different groups.
I did something simple along the lines of:

if ($this->ion_auth->in_group('moderator') || $this->ion_auth->is_admin()) {
return TRUE;
} else {
if(!$return) {
show_404('', 'Moderator access denied');
}
return FALSE;
}
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
Reply


Messages In This Thread
RE: Implementing RBAC for ion_auth codeigniter - by Leo - 04-18-2020, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB