Implementing RBAC for ion_auth codeigniter |
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.
|
Messages In This Thread |
Implementing RBAC for ion_auth codeigniter - by adeshina - 04-17-2020, 06:20 PM
RE: Implementing RBAC for ion_auth codeigniter - by jreklund - 04-18-2020, 05:51 AM
RE: Implementing RBAC for ion_auth codeigniter - by adeshina - 04-18-2020, 06:53 AM
RE: Implementing RBAC for ion_auth codeigniter - by jreklund - 04-18-2020, 07:08 AM
RE: Implementing RBAC for ion_auth codeigniter - by Leo - 04-18-2020, 10:13 AM
RE: Implementing RBAC for ion_auth codeigniter - by vzan8978 - 12-19-2020, 04:44 AM
|