1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01: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.");
}

View File

@ -205,7 +205,4 @@
<Build Include="dbo\Stored Procedures\User_UpdateStorage.sql" />
<Build Include="dbo\Stored Procedures\Cipher_DeleteAttachment.sql" />
</ItemGroup>
<ItemGroup>
<RefactorLog Include="Sql.refactorlog" />
</ItemGroup>
</Project>