aboutsummaryrefslogtreecommitdiff
path: root/views/list/delete/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 15:30:53 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 15:30:53 +0200
commit179ebaebc36b6dc470dacad5a9020e4d6bf9921a (patch)
tree053c11e48ccda6cf22e532c5f65a98d7ff0a6dd1 /views/list/delete/index.php
parentd7c2e638a5ea39caeadd40406f840e9b90f893d5 (diff)
downloadnowayforward_human-179ebaebc36b6dc470dacad5a9020e4d6bf9921a.tar
nowayforward_human-179ebaebc36b6dc470dacad5a9020e4d6bf9921a.tar.gz
nowayforward_human-179ebaebc36b6dc470dacad5a9020e4d6bf9921a.zip
feat: Allow admins to delete lists
Diffstat (limited to 'views/list/delete/index.php')
-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">