From 38ce80accacb8335a14ea486ebb67d830e61f0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B5=A9=E6=96=8C?= Date: Thu, 23 Jan 2025 10:42:41 +0800 Subject: [PATCH] Update privilege_list.php --- trunk/web/admin/privilege_list.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trunk/web/admin/privilege_list.php b/trunk/web/admin/privilege_list.php index 1b4e5e23c51..502c439f0c9 100644 --- a/trunk/web/admin/privilege_list.php +++ b/trunk/web/admin/privilege_list.php @@ -72,8 +72,11 @@ echo "".$row['rightstr']; if($row['valuestr']!="true") echo ":".$row['valuestr']; echo ""; - echo "Delete"; - echo ""; + if($row['rightstr']!="administrator" ||$row['user_id']!=$_SESSION[$OJ_NAME."_user_id"]) + echo "Delete"; + else + echo "Can't suicide"; + echo ""; } ?>