зеркало из https://github.com/mozilla/pjs.git
Bug 141557 - modification to user deletion code in editusers.cgi - prevent allowuserdeletion being bypassed. Patch by gerv; 2xr=myk.
This commit is contained in:
Родитель
4b124e2b27
Коммит
f8dd6171f2
|
@ -528,6 +528,7 @@ if ($action eq 'del') {
|
|||
if (!$candelete) {
|
||||
print "Sorry, deleting users isn't allowed.";
|
||||
PutTrailer();
|
||||
exit;
|
||||
}
|
||||
if (!$editall) {
|
||||
print "Sorry, you don't have permissions to delete users.";
|
||||
|
@ -657,6 +658,7 @@ if ($action eq 'delete') {
|
|||
if (!$candelete) {
|
||||
print "Sorry, deleting users isn't allowed.";
|
||||
PutTrailer();
|
||||
exit;
|
||||
}
|
||||
if (!$editall) {
|
||||
print "Sorry, you don't have permissions to delete users.";
|
||||
|
|
Загрузка…
Ссылка в новой задаче