Skip to content

Commit

Permalink
Update privilege_list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Jan 23, 2025
1 parent 734f66e commit 38ce80a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions trunk/web/admin/privilege_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@
echo "<td>".$row['rightstr'];
if($row['valuestr']!="true") echo ":".$row['valuestr'];
echo "</td>";
echo "<td><a href='privilege_delete.php?uid=".htmlentities($row['user_id'],ENT_QUOTES,"UTF-8")."&rightstr={$row['rightstr']}&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey']."'>Delete</a></td>";
echo "</tr>";
if($row['rightstr']!="administrator" ||$row['user_id']!=$_SESSION[$OJ_NAME."_user_id"])
echo "<td><a href='privilege_delete.php?uid=".htmlentities($row['user_id'],ENT_QUOTES,"UTF-8")."&rightstr={$row['rightstr']}&getkey=".$_SESSION[$OJ_NAME.'_'.'getkey']."'>Delete</a></td>";
else
echo "Can't suicide";
echo "</tr>";
}
?>
</table>
Expand Down

0 comments on commit 38ce80a

Please sign in to comment.