Skip to content

Commit 4068e81

Browse files
committed
feat: add permissions check for inviting users
1 parent bee161e commit 4068e81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/components/layout/Header.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
<i class="fa fa-eye" aria-hidden="true"></i>Watchlist
5656
</router-link>
5757
</li>
58-
<li @click="showMobileMenu = false"> <!--v-if="canInvite()">-->
59-
<a @click="showInvite = true">
58+
<li @click="showMobileMenu = false">
59+
<a v-if="permissionUtils.hasPermission('invitations.invite')" @click="showInvite = true">
6060
<i class="fa fa-user-plus" aria-hidden="true"></i>Invite Users
6161
</a>
6262
</li>
@@ -210,8 +210,8 @@
210210
<li>
211211
<router-link :to="{ name: 'Watchlist' }">Watchlist</router-link>
212212
</li>
213-
<li> <!--v-if="canInvite()">-->
214-
<a href="#" @click.prevent="showInvite = true">
213+
<li>
214+
<a v-if="permissionUtils.hasPermission('invitations.invite')" @click.prevent="showInvite = true">
215215
Invite User
216216
</a>
217217
</li>

0 commit comments

Comments
 (0)