1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 10:34:07 +00:00

[Policy] Personal Ownership (#1166)

* Initial commit of personal ownership policy

* Updated logic for returning from allowing cipher creation from notification

* fixed small edge case when user in one org // adjusted error message to match all platforms

* Removed test code
This commit is contained in:
Vincent Salucci
2020-12-14 08:46:54 -06:00
committed by GitHub
parent 0dd87bbf78
commit 6e40b7f25b
8 changed files with 74 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
MasterPassword = 1,
PasswordGenerator = 2,
OnlyOrg = 3,
RequireSso = 4
RequireSso = 4,
PersonalOwnership = 5,
}
}

View File

@@ -20,6 +20,7 @@ namespace Bit.Core.Models.Data
UseTotp = response.UseTotp;
Use2fa = response.Use2fa;
UseApi = response.UseApi;
UsePolicies = response.UsePolicies;
SelfHost = response.SelfHost;
UsersGetPremium = response.UsersGetPremium;
Seats = response.Seats;
@@ -38,6 +39,7 @@ namespace Bit.Core.Models.Data
public bool UseTotp { get; set; }
public bool Use2fa { get; set; }
public bool UseApi { get; set; }
public bool UsePolicies { get; set; }
public bool SelfHost { get; set; }
public bool UsersGetPremium { get; set; }
public int Seats { get; set; }

View File

@@ -20,6 +20,7 @@ namespace Bit.Core.Models.Domain
UseTotp = obj.UseTotp;
Use2fa = obj.Use2fa;
UseApi = obj.UseApi;
UsePolicies = obj.UsePolicies;
SelfHost = obj.SelfHost;
UsersGetPremium = obj.UsersGetPremium;
Seats = obj.Seats;
@@ -38,6 +39,7 @@ namespace Bit.Core.Models.Domain
public bool UseTotp { get; set; }
public bool Use2fa { get; set; }
public bool UseApi { get; set; }
public bool UsePolicies { get; set; }
public bool SelfHost { get; set; }
public bool UsersGetPremium { get; set; }
public int Seats { get; set; }

View File

@@ -12,6 +12,7 @@ namespace Bit.Core.Models.Response
public bool UseTotp { get; set; }
public bool Use2fa { get; set; }
public bool UseApi { get; set; }
public bool UsePolicies { get; set; }
public bool UsersGetPremium { get; set; }
public bool SelfHost { get; set; }
public int Seats { get; set; }