Commit 6f4fba59 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 288603: Allow users in the request group to remove pending requests made by…

Bug 288603: Allow users in the request group to remove pending requests made by others - Patch by Frédéric Buclin <LpSolit@gmail.com> r=myk a=justdave
parent fcd963fc
......@@ -320,8 +320,11 @@ sub validate {
# - The flag is unchanged
next if ($status eq $flag->{status});
# - User can clear flags set by itself
next if (($status eq "X") && ($user->id eq $flag->{setter}->id));
# - User in the $request_gid group can clear pending requests
next if ($status eq 'X'
&& $flag->{status} eq '?'
&& (!$flag->{type}->{request_gid}
|| $user->in_group(&::GroupIdToName($flag->{type}->{request_gid}))));
# - User in the $grant_gid group can set/clear flags,
# including "+" and "-"
......
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