Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix: hide admin link to non-admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Oct 28, 2019
1 parent c2cd1f3 commit d585cd0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/layout/TopNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<template v-if="$auth && $auth.$state.loggedIn">
<draft-tab class="navbar-item" />
<nuxt-link
v-show="$auth.$state.isAdmin"
:to="{ name: 'admin-proposals', params: {} }"
class="navbar-item">
Admin
Expand Down

0 comments on commit d585cd0

Please sign in to comment.