Skip to content

Commit 817f184

Browse files
omkartapaleREJack
authored andcommitted
By default admin group have access to all permissions (#202)
As admin user has access to all permissions, so admin group also has the same access. so needed to check if $group_par is admin or not
1 parent 224b40b commit 817f184

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

application/libraries/Aauth.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,10 @@ public function is_group_allowed($perm_par, $group_par=FALSE){
16421642

16431643
// if group par is given
16441644
if($group_par != FALSE){
1645+
1646+
// if group is admin group, as admin group has access to all permissions
1647+
if (strcasecmp($group_par, $this->config_vars['admin_group']) == 0)
1648+
{return TRUE;}
16451649

16461650
$subgroup_ids = $this->get_subgroups($group_par);
16471651
$group_par = $this->get_group_id($group_par);

0 commit comments

Comments
 (0)