Skip to content

Commit 20034e8

Browse files
committedFeb 15, 2022
feat: add permissions check to admin nav items in header
1 parent 4068e81 commit 20034e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/components/layout/Header.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
Epochtalk Forums
7878
</router-link>
7979
</h1>
80-
<admin-navigation v-if="adminMode" />
80+
<admin-navigation v-if="adminMode && (permissionUtils.hasPermission('adminAccess') || permissionUtils.hasPermission('modAccess'))" />
8181

8282
<!-- Login Section -->
8383
<ul class="signed-out" v-if="!loggedIn">

0 commit comments

Comments
 (0)
Please sign in to comment.