1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 16:12:49 -05:00

attachment check on login share

This commit is contained in:
Kyle Spearrin
2017-07-28 15:09:43 -04:00
parent cfc80f8d1e
commit d5b540b9e6
2 changed files with 1 additions and 4 deletions

View File

@ -323,7 +323,7 @@ namespace Bit.Core.Services
}
var org = await _organizationRepository.GetByIdAsync(organizationId);
if(!org.MaxStorageGb.HasValue)
if(hasAttachments && !org.MaxStorageGb.HasValue)
{
throw new BadRequestException("This organization cannot use attachments.");
}