Browse Source

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
2.5-stable
Omkar Tapale 8 years ago committed by Raphael Jackstadt
parent
commit
817f1846ed
  1. 4
      application/libraries/Aauth.php

4
application/libraries/Aauth.php

@ -1643,6 +1643,10 @@ class Aauth {
// if group par is given // if group par is given
if($group_par != FALSE){ if($group_par != FALSE){
// if group is admin group, as admin group has access to all permissions
if (strcasecmp($group_par, $this->config_vars['admin_group']) == 0)
{return TRUE;}
$subgroup_ids = $this->get_subgroups($group_par); $subgroup_ids = $this->get_subgroups($group_par);
$group_par = $this->get_group_id($group_par); $group_par = $this->get_group_id($group_par);
$query = $this->aauth_db->where('perm_id', $perm_id); $query = $this->aauth_db->where('perm_id', $perm_id);

Loading…
Cancel
Save