gradido/backend/src/data/UserLogic.ts
einhornimmond 987582c3ef Revert "use root biome config for backend, add useImportType rule"
This reverts commit bb8132791557fb9dcbf117ff7c3622a83e2e3730.
2025-04-30 09:29:09 +02:00

11 lines
296 B
TypeScript

import { User, UserRole } from 'database'
import { RoleNames } from '@enum/RoleNames'
export class UserLogic {
public constructor(private self: User) {}
public isRole(role: RoleNames): boolean {
return this.self.userRoles.some((value: UserRole) => value.role === role.toString())
}
}