External module "helpers/authorization"
Functions
Const can
-
Parameters
-
user: User | number
-
-
targetType: "user" | "organization" | "membership" | "api-key" | "general"
-
Returns Promise<boolean>
Const canUserApiKey
-
Parameters
Returns Promise<boolean>
Const canUserGeneral
-
Parameters
Returns Promise<boolean>
Const canUserMembership
-
Parameters
Returns Promise<boolean>
Const canUserOrganization
-
Parameters
Returns Promise<boolean>
Const canUserUser
-
Parameters
Returns Promise<boolean>
Whether a user has authorization to perform an action