Skip to content

Commit

Permalink
Feature/acl fixes (#186)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
volarname authored Jul 3, 2024
1 parent 7cf7a7f commit 5cf04b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/auth/auth.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineAuth } from '@anzusystems/common-admin'
import { SYSTEM_CORE_DAM } from '@/model/systems'
import { SYSTEM_CORE_DAM, SYSTEM_DAM } from '@/model/systems'

export const ACL = {
DAM_ASSET_CREATE: 'dam_asset_create',
Expand Down Expand Up @@ -104,7 +104,7 @@ export type AclKey = keyof typeof ACL
export type AclValue = (typeof ACL)[AclKey]

export function useAuth() {
const { can, canForAll, canForSome, useCurrentUser } = defineAuth<AclValue>(SYSTEM_CORE_DAM)
const { can, canForAll, canForSome, useCurrentUser } = defineAuth<AclValue>(SYSTEM_DAM)

return {
useCurrentUser,
Expand Down

0 comments on commit 5cf04b5

Please sign in to comment.