mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 12:12:15 +01:00
hide actions and pages in the frontend according to permissions
This commit is contained in:
@@ -9,6 +9,7 @@ import SecondaryButton from '@/Components/SecondaryButton.vue';
|
||||
import { api } from '../../../../../openapi.json.client';
|
||||
import { getCurrentOrganizationId } from '@/utils/useUser';
|
||||
import { useNotificationsStore } from '@/utils/notification';
|
||||
import { canInvitePlaceholderMembers } from '@/utils/permissions';
|
||||
|
||||
const props = defineProps<{
|
||||
member: Member;
|
||||
@@ -70,7 +71,10 @@ async function invitePlaceholder(id: string) {
|
||||
<div
|
||||
class="relative whitespace-nowrap flex items-center pl-3 text-right text-sm font-medium sm:pr-0 pr-4 sm:pr-6 lg:pr-8 3xl:pr-12">
|
||||
<SecondaryButton
|
||||
v-if="member.is_placeholder === true"
|
||||
v-if="
|
||||
member.is_placeholder === true &&
|
||||
canInvitePlaceholderMembers()
|
||||
"
|
||||
@click="invitePlaceholder(member.id)"
|
||||
size="small"
|
||||
>Invite</SecondaryButton
|
||||
|
||||
Reference in New Issue
Block a user