mirror of
https://github.com/bitwarden/server.git
synced 2025-02-28 03:51:23 +01:00
isUser function
This commit is contained in:
parent
dcbe30b80f
commit
64ddcaaf0f
@ -15,5 +15,6 @@ namespace Bit.Core.Models.Table
|
||||
string BraintreeCustomerIdPrefix();
|
||||
string BraintreeIdField();
|
||||
string GatewayIdField();
|
||||
bool IsUser();
|
||||
}
|
||||
}
|
||||
|
@ -78,6 +78,11 @@ namespace Bit.Core.Models.Table
|
||||
return "organizationId";
|
||||
}
|
||||
|
||||
public bool IsUser()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public long StorageBytesRemaining()
|
||||
{
|
||||
if(!MaxStorageGb.HasValue)
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user