Bug 141557 - modification to user deletion code in editusers.cgi - prevent allowuserdeletion being bypassed. Patch by gerv; 2xr=myk.

This commit is contained in:
gerv%gerv.net 2002-05-01 20:54:10 +00:00
Родитель 4b124e2b27
Коммит f8dd6171f2
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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.";