Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

By default admin group have access to all permissions #202

Merged
merged 1 commit into from
Nov 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,10 @@ public function is_group_allowed($perm_par, $group_par=FALSE){

// if group par is given
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);
$group_par = $this->get_group_id($group_par);
Expand Down