aboutsummaryrefslogtreecommitdiff
path: root/views/user/delete/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 16:00:41 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 16:00:41 +0200
commite152b791f45b02c20b00e248f1502bc144e8a9a8 (patch)
tree6e02239984eeaaf39b85759368b189d1801d98d4 /views/user/delete/index.php
parente0fe3d0a5b6dd8bf4ba11eee10adfb6be3f5ab31 (diff)
downloadnowayforward_human-e152b791f45b02c20b00e248f1502bc144e8a9a8.tar
nowayforward_human-e152b791f45b02c20b00e248f1502bc144e8a9a8.tar.gz
nowayforward_human-e152b791f45b02c20b00e248f1502bc144e8a9a8.zip
feat(views/admin): Implement form for user deletion
Diffstat (limited to 'views/user/delete/index.php')
-rw-r--r--views/user/delete/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/user/delete/index.php b/views/user/delete/index.php
index d1ce8b9..cdc61ac 100644
--- a/views/user/delete/index.php
+++ b/views/user/delete/index.php
@@ -8,7 +8,7 @@
catch(Exception $e) {}
?>
-<?php if ($to_delete !== null && $user->UID === $to_delete->UID): ?>
+<?php if ($to_delete !== null && ($user->UID === $to_delete->UID || $user->Role === 'Admin')): ?>
<h1>Are you sure you want to delete <?= $to_delete->Username ?>?</h1>
<form action="#" method="POST" class="font-115 flex-col-centered max-width-20 center-margin">