Website Summary Files Commits Branches @commit @diff @stats
path: root / views / user / delete / index.php
diff options
context:
space:
mode:
Commite152b791f45b02c20b00e248f1502bc144e8a9a8 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-02-02 16:00:41 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-02-02 16:00:41 +0200
Files6e02239984eeaaf39b85759368b189d1801d98d4 /views/user/delete/index.php
nowayforward_human-e152b791f45b02c20b00e248f1502bc144e8a9a8.tar
nowayforward_human-e152b791f45b02c20b00e248f1502bc144e8a9a8.tar.gz
nowayforward_human-e152b791f45b02c20b00e248f1502bc144e8a9a8.zip
Parente0fe3d0a5b6dd8bf4ba11eee10adfb6be3f5ab31 (diff)
feat(views/admin): Implement form for user deletion
1 files changed, 1 insertions, 1 deletions
-rw-r--r--views/user/delete/index.php2
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">