-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
ibs3/src/lib/server/auth/helpers.ts
Lines 15 to 21 in 552eaa6
| export const RequireRole = (role = Roles.Senaat) => { | |
| return function actualDectorator(targetMethod: any, ctx: any) { | |
| return function (this: any, ...args: any[]) { | |
| if (!hasRole()) const result = targetMethod.call(this, ...args) | |
| } | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🆕 New