Website Summary Files Commits Branches @commit @diff @stats
path: root / views / user / delete / index.php
diff options
context:
space:
mode:
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">