mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
fix ts errors
This commit is contained in:
@@ -2,7 +2,7 @@ import { usePermissionsStore, useUserStore } from '@/stores';
|
||||
import { Permission } from '@/types';
|
||||
import generateJoi from '@/utils/generate-joi';
|
||||
|
||||
export function isAllowed(collection: string, action: Permission['action'], value: Record<string, any>) {
|
||||
export function isAllowed(collection: string, action: Permission['action'], value: Record<string, any> | null) {
|
||||
const permissionsStore = usePermissionsStore();
|
||||
const userStore = useUserStore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user