mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
7 lines
170 B
TypeScript
7 lines
170 B
TypeScript
import { RIGHTS } from './RIGHTS'
|
|
import { Role } from './Role'
|
|
|
|
export const hasRight = (right: RIGHTS, role: Role): boolean => {
|
|
return role.rights.includes(right)
|
|
}
|