Skip to content

authorization decorators #506

@Nierot

Description

@Nierot

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions