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

Fixes #3233 Cascading usergroup moderator permissions broken #3421

Open
wants to merge 1 commit into
base: feature
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,16 @@ function get_moderator_permissions($fid, $uid=0, $parentslist="")
continue;
}

$perms[$action] = max($perm[$action], $perms[$action]);
// Figure out the usergroup permissions
if($value == 0)
{
// The usergroup doesn't have permission to set this action
$perms[$action] = 0;
}
else
{
$perms[$action] = max($perm[$action], $perms[$action]);
}
}
}
}
Expand Down