mirror of
https://github.com/bitwarden/server
synced 2025-12-12 06:13:43 +00: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