Commit 3d7ec6cf authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix bug in AccessCheck() for editing groups.

parent eb813655
......@@ -407,7 +407,6 @@ sub EditGroup($$$$)
#
# First pass does checks. Second pass does the real thing.
#
my $g_pid = $group->pid();
my $g_gid = $group->gid();
my $target_user;
......@@ -785,7 +784,9 @@ sub AccessCheck($$$)
# Only project_root or group_root in default group
# may grab (involuntarily add) users into groups.
#
$gid = $pid;
if (! $self->IsProjectGroup()) {
return $self->GetProject()->AccessCheck($user, $access_type);
}
$mintrust = PROJMEMBERTRUST_GROUPROOT;
}
elsif ($access_type == TB_PROJECT_DELUSER) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment