mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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
This commit is contained in:
parent
3c1b24d76e
commit
23a19abaa2
@ -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 "-"
|
||||
|
Loading…
Reference in New Issue
Block a user