DE
Asked
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...
- MSAnsweredHello,
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 - DEAnsweredI 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. - MSAnsweredHello,
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 - Login to Reply