Hello everyone,
I'm using the user roles module to manage roles and permissions,
I have reviewed the documents and found that we need to add the below guard to all API methods? and here is only added admin so how to manage dynamic ??
@UseGuards(new AuthGuard({
overrideGlobalClaimValidators: async (globalValidators: SessionClaimValidator[]) => ([
...globalValidators,
UserRoles.UserRoleClaim.validators.includes("admin"),
// UserRoles.PermissionClaim.validators.includes("edit")
])
}))