mirror of
https://github.com/bitwarden/server
synced 2025-12-10 05:13:48 +00:00
Revert "remove premium checks for internal testing"
This reverts commit 26fb6fc3b7.
This commit is contained in:
@@ -80,7 +80,6 @@ namespace Bit.Core.Services
|
|||||||
throw new BadRequestException("No file data.");
|
throw new BadRequestException("No file data.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
var storageBytesRemaining = 0L;
|
var storageBytesRemaining = 0L;
|
||||||
if (send.UserId.HasValue)
|
if (send.UserId.HasValue)
|
||||||
{
|
{
|
||||||
@@ -117,7 +116,6 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
throw new BadRequestException("Not enough storage available.");
|
throw new BadRequestException("Not enough storage available.");
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
var fileId = Utilities.CoreHelpers.SecureRandomString(32, upper: false, special: false);
|
var fileId = Utilities.CoreHelpers.SecureRandomString(32, upper: false, special: false);
|
||||||
await _sendFileStorageService.UploadNewFileAsync(stream, send, fileId);
|
await _sendFileStorageService.UploadNewFileAsync(stream, send, fileId);
|
||||||
|
|||||||
Reference in New Issue
Block a user