mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
changed all OnlyOrg wording to be SingleOrg instead (#974)
* changed all OnlyOrg wording to be SingleOrg instead * missed an OnlyOrg to change to SingleOrg
This commit is contained in:
@ -161,7 +161,7 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
var policies = await _policyRepository.GetManyByUserIdAsync(user.Id);
|
||||
if (policies.Any(policy => policy.Type == PolicyType.OnlyOrg))
|
||||
if (policies.Any(policy => policy.Type == PolicyType.SingleOrg))
|
||||
{
|
||||
throw new Exception("You may not create an organization. You belong to an organization " +
|
||||
"which has a policy that prohibits you from being a member of any other organization.");
|
||||
@ -189,7 +189,7 @@ namespace Bit.Api.Controllers
|
||||
}
|
||||
|
||||
var policies = await _policyRepository.GetManyByUserIdAsync(user.Id);
|
||||
if (policies.Any(policy => policy.Type == PolicyType.OnlyOrg))
|
||||
if (policies.Any(policy => policy.Type == PolicyType.SingleOrg))
|
||||
{
|
||||
throw new Exception("You may not create an organization. You belong to an organization " +
|
||||
"which has a policy that prohibits you from being a member of any other organization.");
|
||||
|
Reference in New Issue
Block a user