Developer / Reference / TypeScript APIs

ScifeonUserHelper

Last updated on 13-May-2020 by Jakob Jakobsen Boysen
Jakob Jakobsen Boysen

Platform Lead
boysen@scifeon.com

This class is used in conjunction with ScifeonUser and is automatically instantiated as the static property ScifeonUser.Helper on that class.

Example

API

Methods

hasRole(role: string): boolean

Parameters

Returns

True when the logged on user has the role.

hasOneOfRoles(...roles: string[]): boolean

Parameters

Returns

True when the logged on user has one of the roles.

Example

See above.