1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-28 03:51:23 +01: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 BraintreeIdField();
string GatewayIdField();
bool IsUser();
}
}

View File

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

View File

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