fix ts errors

This commit is contained in:
Nitwel
2020-10-21 09:51:34 +02:00
parent 413c8bab64
commit fb755efc4e
4 changed files with 4 additions and 4 deletions

View File

@@ -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();