I Need Admin To Be Able To Manage Users

0

I have sales managers who manage their own people. Do I need to re-write? or is there a more simple way? I see most all is mixed in with either "$this->ion_auth->in_group('owner')" or "$this->Owner" or others... I prefer "class RBAC" over ION Auth as it makes it much easier to modify groups in these situations. Hoping to find a more simple way to modify Admin permissions...

Question Resolved For: Stock Manager Advance (Invoice & Inventory System) 0 Votes 3 Answers 351 Views
Asked by Dean Elzey 2 years ago

0

Answered by Mian Saleem 2 years ago

Hello,

No. The Admin has fixed permnissions and only can be chnaged with code modifications. The only option to check group is $this->ion_auth->in_group('admin') The $this->Owner is in the core controller just using the same link to check the group.

Thank you

0

Answered by Dean Elzey 2 years ago

I have tried using in places $this->ion_auth->in_group('owner') || $this->ion_auth->in_group('admin') and
$this->ion_auth->in_group(['owner', 'admin']) and it does not work correctly... If I set to 'admin' then owner does not work.

0

Answered by Mian Saleem 2 years ago

Hello,

I have no clue what doesn't work correctly but the $this->ion_auth->in_group('owner') || $this->ion_auth->in_group('admin') will allowed both owner and admin groups.

Thank you

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.