зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
0cd6edf9b7
Коммит
ecffc75480
|
@ -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 "-"
|
||||
|
|
Загрузка…
Ссылка в новой задаче