mirror of
https://github.com/bitwarden/server
synced 2025-12-14 23:33:41 +00: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);
|
var org = await _organizationRepository.GetByIdAsync(organizationId);
|
||||||
if(!org.MaxStorageGb.HasValue)
|
if(hasAttachments && !org.MaxStorageGb.HasValue)
|
||||||
{
|
{
|
||||||
throw new BadRequestException("This organization cannot use attachments.");
|
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\User_UpdateStorage.sql" />
|
||||||
<Build Include="dbo\Stored Procedures\Cipher_DeleteAttachment.sql" />
|
<Build Include="dbo\Stored Procedures\Cipher_DeleteAttachment.sql" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<RefactorLog Include="Sql.refactorlog" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user