Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { ResourcePermissionChecker } from "@server/meta/fd-meta-core/auth/permissions/resource-permission-checker";
- import { get } from "@server/meta/fd-meta/basic-crud/crud-handler-provider";
- let permissionCheckers: ResourcePermissionChecker[] | null = null;
- export function getPermissionCheckers(): ResourcePermissionChecker[] {
- if (permissionCheckers === null) {
- permissionCheckers = get<ResourcePermissionChecker[]>("ResourcePermissionChecker");
- }
- return permissionCheckers;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement