diff options
Diffstat (limited to 'views/user/delete/index.php')
| -rw-r--r-- | views/user/delete/index.php | 2 |
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"> |
