Variable PERMISSIONConst

PERMISSION: {
    ALLOW: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    };
    CREATE_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    };
    DELETE_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    };
    DENY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    };
    READ_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    };
    UPDATE_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    };
    and: (<T>(cruds: CRUDPermission<T>[]) => CRUDPermission<T>);
    or: (<T>(cruds: CRUDPermission<T>[]) => CRUDPermission<T>);
} = ...

Type declaration

  • ALLOW: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    }
    • create: boolean
    • delete: boolean
    • read: boolean
    • update: boolean
  • CREATE_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    }
    • create: boolean
    • delete: boolean
    • read: boolean
    • update: boolean
  • DELETE_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    }
    • create: boolean
    • delete: boolean
    • read: boolean
    • update: boolean
  • DENY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    }
    • create: boolean
    • delete: boolean
    • read: boolean
    • update: boolean
  • READ_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    }
    • create: boolean
    • delete: boolean
    • read: boolean
    • update: boolean
  • UPDATE_ONLY: {
        create: boolean;
        delete: boolean;
        read: boolean;
        update: boolean;
    }
    • create: boolean
    • delete: boolean
    • read: boolean
    • update: boolean
  • and: (<T>(cruds: CRUDPermission<T>[]) => CRUDPermission<T>)
  • or: (<T>(cruds: CRUDPermission<T>[]) => CRUDPermission<T>)

Generated using TypeDoc