aboutsummaryrefslogtreecommitdiff
path: root/views/user/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-02 15:52:58 +0200
committerSyndamia <kamen@syndamia.com>2025-02-02 15:52:58 +0200
commite0fe3d0a5b6dd8bf4ba11eee10adfb6be3f5ab31 (patch)
treee0562c4683f27c7700ceb16e6faa3a06dd3f50f8 /views/user/index.php
parent179ebaebc36b6dc470dacad5a9020e4d6bf9921a (diff)
downloadnowayforward_human-e0fe3d0a5b6dd8bf4ba11eee10adfb6be3f5ab31.tar
nowayforward_human-e0fe3d0a5b6dd8bf4ba11eee10adfb6be3f5ab31.tar.gz
nowayforward_human-e0fe3d0a5b6dd8bf4ba11eee10adfb6be3f5ab31.zip
feat: Implement admin panel with the ability to change role of users
Diffstat (limited to 'views/user/index.php')
-rw-r--r--views/user/index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/user/index.php b/views/user/index.php
index 066fd69..82c95c8 100644
--- a/views/user/index.php
+++ b/views/user/index.php
@@ -21,6 +21,11 @@
<form action="/user/settings" method="GET">
<input type="submit" value="Account settings">
</form>
+ <?php if ($user->Role === 'Admin'): ?>
+ <form action="/admin" method="GET">
+ <input type="submit" value="Admin panel">
+ </form>
+ <?php endif; ?>
</section>
<script type="text/javascript">
function showUserButtons() {