aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-01-05 17:41:31 +0900
committerPitu <[email protected]>2021-01-05 17:41:31 +0900
commitd2bf8ce8c80d296a6746dd195023032dbbb33459 (patch)
tree9c60342f68ee8f5abfc3d27b320f9b082c1bdd7f
parentfeat: enable user creation from admin panel (diff)
downloadhost.fuwn.me-d2bf8ce8c80d296a6746dd195023032dbbb33459.tar.xz
host.fuwn.me-d2bf8ce8c80d296a6746dd195023032dbbb33459.zip
fix: dont show admin navbar if not an admin
-rw-r--r--src/site/components/sidebar/Sidebar.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/site/components/sidebar/Sidebar.vue b/src/site/components/sidebar/Sidebar.vue
index 8d96712..dc261ee 100644
--- a/src/site/components/sidebar/Sidebar.vue
+++ b/src/site/components/sidebar/Sidebar.vue
@@ -22,7 +22,7 @@
tag="nuxt-link"
to="/dashboard/tags"
exact />
- <b-menu-item icon="menu" expanded>
+ <b-menu-item v-if="user && user.isAdmin" icon="menu" expanded>
<template slot="label" slot-scope="props">
Administration
<b-icon class="is-pulled-right" :icon="props.expanded ? 'menu-down' : 'menu-up'" />