UNPKG

@ctodev/cclibrary-typings

Version:

Library typings for use with CLARC INFINITY

22 lines (21 loc) 861 B
import { TccAuthService } from '../../../odata/services/tcc-auth/tcc-auth.service'; import { TccET_IAM } from '../../../odata/models/iam.model'; import { TccSingleton } from '../../../core/models/tcc-singleton.model'; export declare class TccTestForRoleService implements TccSingleton { private auth; constructor(auth: TccAuthService); init(): void; reset(): void; /** * * @param roles array of roles to check against. admin and master always return true * @returns if the current user has at least one of the requested roles */ isUserInRoles(roles?: Array<TccET_IAM.UserRoles>): boolean; /** * * @param roles array of roles to check against. * @returns true if the current user has at least one of the requested roles */ isUserInRolesStrict(roles: Array<TccET_IAM.UserRoles>): boolean; }