Advertisement
djbob2000

Untitled

Aug 7th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { ResourcePermissionChecker } from "@server/meta/fd-meta-core/auth/permissions/resource-permission-checker";
  2. import { get } from "@server/meta/fd-meta/basic-crud/crud-handler-provider";
  3.  
  4. let permissionCheckers: ResourcePermissionChecker[] | null = null;
  5.  
  6. export function getPermissionCheckers(): ResourcePermissionChecker[] {
  7.     if (permissionCheckers === null) {
  8.         permissionCheckers = get<ResourcePermissionChecker[]>("ResourcePermissionChecker");
  9.     }
  10.     return permissionCheckers;
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement