core/common/permissions.service.ts
Methods |
|
constructor(appState: AppStateService, inventory: InventoryService, user: UserService)
|
||||||||||||
Parameters :
|
canEdit | ||||||||||||||||||||
canEdit(roleIds, mo: IManagedObject | IIdentified, config: CanEditConfig)
|
||||||||||||||||||||
Checks if the current user has write permissions for the given mo. (either through global role, individual device permissions or via inventory roles).
Parameters :
Returns :
unknown
|
Protected Async checkIfOwner | ||||
checkIfOwner(mo)
|
||||
Decorators :
@memoize(undefined)
|
||||
Parameters :
Returns :
unknown
|
Protected checkWithRequest | ||||
checkWithRequest(mo)
|
||||
Decorators :
@memoize(undefined)
|
||||
Parameters :
Returns :
any
|
hasAllRoles | ||||||
hasAllRoles(roleIds: string[])
|
||||||
Parameters :
Returns :
any
|
hasAnyRole | ||||||
hasAnyRole(roleIds: string[])
|
||||||
Parameters :
Returns :
any
|
hasRole | ||||||
hasRole(roleId: string)
|
||||||
Parameters :
Returns :
any
|