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:
@@ -6,6 +6,7 @@
|
||||
MasterPassword = 1,
|
||||
PasswordGenerator = 2,
|
||||
OnlyOrg = 3,
|
||||
RequireSso = 4
|
||||
RequireSso = 4,
|
||||
PersonalOwnership = 5,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user