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:
parent
cfc80f8d1e
commit
d5b540b9e6
@ -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.");
|
||||
}
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user