UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

9 lines (8 loc) 472 B
import type { Accountability, Filter } from '@directus/types'; import type { Context } from '../permissions/types.js'; /** * Check if the read permissions for a collection contain the dynamic variable $NOW. * If they do, the permissions are not cacheable. */ export declare function permissionsCacheable(collection: string | undefined, context: Context, accountability?: Accountability): Promise<boolean>; export declare function filterHasNow(filter: Filter): boolean;