UNPKG

@serenity-is/corelib

Version:
20 lines 795 B
export interface UserDefinition { /** * Username of the logged user */ Username?: string; /** * Display name of the logged user */ DisplayName?: string; /** * This indicates that the user is a super "admin", e.g. assumed to have all the permissions available. * It does not mean a member of Administrators, who might not have some of the permissions */ IsAdmin?: boolean; /** * A hashset of permission keys that the current user have, explicitly assigned or via its * roles. Note that client side permission checks should only be used for UI enable/disable etc. * You should not rely on client side permission checks and always re-check permissions server side. */ Permissions?: { [key: string]: boolean }; }