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:
@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user