Skip to content

Commit

Permalink
fix: only show Invite Member settings page if manager
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Oct 25, 2024
1 parent fb6246e commit 6dc2199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/Settings/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import WhatsAppSettings from '@/components/Settings/WhatsAppSettings.vue'
import ERPNextSettings from '@/components/Settings/ERPNextSettings.vue'
import TwilioSettings from '@/components/Settings/TwilioSettings.vue'
import SidebarLink from '@/components/SidebarLink.vue'
import { usersStore } from '@/stores/users'
import {
isWhatsappInstalled,
showSettings,
Expand All @@ -61,6 +62,8 @@ import {
import { Dialog, Plans, Billing } from 'frappe-ui'
import { ref, markRaw, computed, watch } from 'vue'
const { isManager } = usersStore()
const tabs = computed(() => {
let _tabs = [
{
Expand All @@ -76,6 +79,7 @@ const tabs = computed(() => {
label: __('Invite Members'),
icon: 'user-plus',
component: markRaw(InviteMemberPage),
condition: () => isManager(),
},
],
},
Expand Down

0 comments on commit 6dc2199

Please sign in to comment.