mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-16 01:21:48 +01:00
add missing permissions to organization objs
This commit is contained in:
parent
049e129f36
commit
36ab2ec78b
@ -9,6 +9,15 @@ export class OrganizationData {
|
|||||||
status: OrganizationUserStatusType;
|
status: OrganizationUserStatusType;
|
||||||
type: OrganizationUserType;
|
type: OrganizationUserType;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
useGroups: boolean;
|
||||||
|
useDirectory: boolean;
|
||||||
|
useEvents: boolean;
|
||||||
|
useTotp: boolean;
|
||||||
|
use2fa: boolean;
|
||||||
|
selfHost: boolean;
|
||||||
|
usersGetPremium: boolean;
|
||||||
|
seats: number;
|
||||||
|
maxCollections: number;
|
||||||
|
|
||||||
constructor(response: ProfileOrganizationResponse) {
|
constructor(response: ProfileOrganizationResponse) {
|
||||||
this.id = response.id;
|
this.id = response.id;
|
||||||
@ -16,5 +25,14 @@ export class OrganizationData {
|
|||||||
this.status = response.status;
|
this.status = response.status;
|
||||||
this.type = response.type;
|
this.type = response.type;
|
||||||
this.enabled = response.enabled;
|
this.enabled = response.enabled;
|
||||||
|
this.useGroups = response.useGroups;
|
||||||
|
this.useDirectory = response.useDirectory;
|
||||||
|
this.useEvents = response.useEvents;
|
||||||
|
this.useTotp = response.useTotp;
|
||||||
|
this.use2fa = response.use2fa;
|
||||||
|
this.selfHost = response.selfHost;
|
||||||
|
this.usersGetPremium = response.usersGetPremium;
|
||||||
|
this.seats = response.seats;
|
||||||
|
this.maxCollections = response.maxCollections;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,15 @@ export class Organization {
|
|||||||
status: OrganizationUserStatusType;
|
status: OrganizationUserStatusType;
|
||||||
type: OrganizationUserType;
|
type: OrganizationUserType;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
useGroups: boolean;
|
||||||
|
useDirectory: boolean;
|
||||||
|
useEvents: boolean;
|
||||||
|
useTotp: boolean;
|
||||||
|
use2fa: boolean;
|
||||||
|
selfHost: boolean;
|
||||||
|
usersGetPremium: boolean;
|
||||||
|
seats: number;
|
||||||
|
maxCollections: number;
|
||||||
|
|
||||||
constructor(obj?: OrganizationData) {
|
constructor(obj?: OrganizationData) {
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
@ -20,6 +29,15 @@ export class Organization {
|
|||||||
this.status = obj.status;
|
this.status = obj.status;
|
||||||
this.type = obj.type;
|
this.type = obj.type;
|
||||||
this.enabled = obj.enabled;
|
this.enabled = obj.enabled;
|
||||||
|
this.useGroups = obj.useGroups;
|
||||||
|
this.useDirectory = obj.useDirectory;
|
||||||
|
this.useEvents = obj.useEvents;
|
||||||
|
this.useTotp = obj.useTotp;
|
||||||
|
this.use2fa = obj.use2fa;
|
||||||
|
this.selfHost = obj.selfHost;
|
||||||
|
this.usersGetPremium = obj.usersGetPremium;
|
||||||
|
this.seats = obj.seats;
|
||||||
|
this.maxCollections = obj.maxCollections;
|
||||||
}
|
}
|
||||||
|
|
||||||
get canAccess() {
|
get canAccess() {
|
||||||
|
@ -9,6 +9,8 @@ export class ProfileOrganizationResponse {
|
|||||||
useEvents: boolean;
|
useEvents: boolean;
|
||||||
useTotp: boolean;
|
useTotp: boolean;
|
||||||
use2fa: boolean;
|
use2fa: boolean;
|
||||||
|
selfHost: boolean;
|
||||||
|
usersGetPremium: boolean;
|
||||||
seats: number;
|
seats: number;
|
||||||
maxCollections: number;
|
maxCollections: number;
|
||||||
maxStorageGb?: number;
|
maxStorageGb?: number;
|
||||||
@ -25,6 +27,8 @@ export class ProfileOrganizationResponse {
|
|||||||
this.useEvents = response.UseEvents;
|
this.useEvents = response.UseEvents;
|
||||||
this.useTotp = response.UseTotp;
|
this.useTotp = response.UseTotp;
|
||||||
this.use2fa = response.Use2fa;
|
this.use2fa = response.Use2fa;
|
||||||
|
this.selfHost = response.SelfHost;
|
||||||
|
this.usersGetPremium = response.UsersGetPremium;
|
||||||
this.seats = response.Seats;
|
this.seats = response.Seats;
|
||||||
this.maxCollections = response.MaxCollections;
|
this.maxCollections = response.MaxCollections;
|
||||||
this.maxStorageGb = response.MaxStorageGb;
|
this.maxStorageGb = response.MaxStorageGb;
|
||||||
|
Loading…
Reference in New Issue
Block a user