mirror of
https://github.com/bitwarden/server.git
synced 2025-04-17 19:18:16 -05:00
isUser function
This commit is contained in:
parent
dcbe30b80f
commit
64ddcaaf0f
@ -15,5 +15,6 @@ namespace Bit.Core.Models.Table
|
|||||||
string BraintreeCustomerIdPrefix();
|
string BraintreeCustomerIdPrefix();
|
||||||
string BraintreeIdField();
|
string BraintreeIdField();
|
||||||
string GatewayIdField();
|
string GatewayIdField();
|
||||||
|
bool IsUser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user