Skip to content

Commit

Permalink
Update user_list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Jan 23, 2025
1 parent 9fb8190 commit 734f66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/admin/user_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
else if($edate>=$today) $color="blue";
echo "<td><span fd='expiry_date' user_id='".$row['user_id']."' class='".$color."' >".$row['expiry_date']."</span></td>";

if(isset($_SESSION[$OJ_NAME.'_'.'administrator'])){
if(isset($_SESSION[$OJ_NAME.'_'.'administrator']) && $row['user_id']!=$_SESSION[$OJ_NAME."_user_id"] ){
echo "<td><a href=user_df_change.php?cid=".$row['user_id']."&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey'].">".
($row['defunct']=="N"?"<span class=green title='$MSG_CLICK_TO_DELETE'>$MSG_NORMAL</span>":"<span class=red title='$MSG_CLICK_TO_RECOVER'>$MSG_DELETED</span>")
."</a></td>";
Expand Down

0 comments on commit 734f66e

Please sign in to comment.