mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
only impose import limits on cloud version
This commit is contained in:
@ -390,7 +390,7 @@ namespace Bit.Api.Controllers
|
||||
[HttpPost("{id}/import")]
|
||||
public async Task Import(string id, [FromBody]ImportOrganizationUsersRequestModel model)
|
||||
{
|
||||
if(model.Groups.Count() > 200 || model.Users.Count() > 1000)
|
||||
if(!_globalSettings.SelfHosted && (model.Groups.Count() > 200 || model.Users.Count() > 1000))
|
||||
{
|
||||
throw new BadRequestException("You cannot import this much data at once.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user