X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/92dd5d32b573b5c90f3ce72dc207f6d0e7f21178..3dbe57077135d1684407ba6cc2a0d20cfcb33618:/src/models/user.ts diff --git a/src/models/user.ts b/src/models/user.ts index eed135a21c..a7b8458bf8 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -4,7 +4,7 @@ import { Resource, ResourceKind } from '~/models/resource'; -export type userPrefs = { +export type UserPrefs = { profile?: { organization?: string, organization_email?: string, @@ -21,7 +21,8 @@ export interface User { uuid: string; ownerUuid: string; identityUrl: string; - prefs: userPrefs; + prefs: UserPrefs; + isAdmin: boolean; } export const getUserFullname = (user?: User) => { @@ -36,7 +37,7 @@ export interface UserResource extends Resource { lastName: string; identityUrl: string; isAdmin: boolean; - prefs: string; + prefs: UserPrefs; defaultOwnerUuid: string; isActive: boolean; writableBy: string[];