mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
16 lines
269 B
TypeScript
16 lines
269 B
TypeScript
import { RIGHTS } from './RIGHTS'
|
|
|
|
export class Role {
|
|
id: string
|
|
rights: RIGHTS[]
|
|
|
|
constructor(id: string, rights: RIGHTS[]) {
|
|
this.id = id
|
|
this.rights = rights
|
|
}
|
|
|
|
hasRight = (right: RIGHTS): boolean => {
|
|
return this.rights.includes(right)
|
|
}
|
|
}
|