aboutsummaryrefslogtreecommitdiff
path: root/views/list/delete
diff options
context:
space:
mode:
Diffstat (limited to 'views/list/delete')
-rw-r--r--views/list/delete/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/list/delete/index.php b/views/list/delete/index.php
index 02eb37d..19c3b4f 100644
--- a/views/list/delete/index.php
+++ b/views/list/delete/index.php
@@ -10,9 +10,9 @@
catch(Exception $e) {}
?>
-<?php if ($list !== null && $user->UID === $author->UID): ?>
+<?php if ($list !== null && ($user->UID === $author->UID || $user->Role === 'Admin')): ?>
- <h1>Are you sure you want to delete <?= $user->Username ?>'s "<?= $list->Name ?>"?</h1>
+ <h1>Are you sure you want to delete <?= $author->Username ?>'s "<?= $list->Name ?>"?</h1>
<form action="#" method="POST" class="font-115 flex-col-centered max-width-20 center-margin">
<input type="hidden" name="method" value="DELETE">