1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-17 19:18:16 -05:00

isUser function

This commit is contained in:
Kyle Spearrin 2019-09-17 16:55:40 -04:00
parent dcbe30b80f
commit 64ddcaaf0f
3 changed files with 11 additions and 0 deletions

View File

@ -15,5 +15,6 @@ namespace Bit.Core.Models.Table
string BraintreeCustomerIdPrefix(); string BraintreeCustomerIdPrefix();
string BraintreeIdField(); string BraintreeIdField();
string GatewayIdField(); string GatewayIdField();
bool IsUser();
} }
} }

View File

@ -78,6 +78,11 @@ namespace Bit.Core.Models.Table
return "organizationId"; return "organizationId";
} }
public bool IsUser()
{
return false;
}
public long StorageBytesRemaining() public long StorageBytesRemaining()
{ {
if(!MaxStorageGb.HasValue) if(!MaxStorageGb.HasValue)

View File

@ -73,6 +73,11 @@ namespace Bit.Core.Models.Table
return "userId"; return "userId";
} }
public bool IsUser()
{
return true;
}
public Dictionary<TwoFactorProviderType, TwoFactorProvider> GetTwoFactorProviders() public Dictionary<TwoFactorProviderType, TwoFactorProvider> GetTwoFactorProviders()
{ {
if(string.IsNullOrWhiteSpace(TwoFactorProviders)) if(string.IsNullOrWhiteSpace(TwoFactorProviders))