1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-17 02:01:53 +01:00

Revert "remove premium checks for internal testing"

This reverts commit 26fb6fc3b7.
This commit is contained in:
Kyle Spearrin 2021-02-17 13:16:01 -05:00
parent ad6abaccc8
commit cd2834cc15

View File

@ -80,7 +80,6 @@ namespace Bit.Core.Services
throw new BadRequestException("No file data.");
}
/*
var storageBytesRemaining = 0L;
if (send.UserId.HasValue)
{
@ -117,7 +116,6 @@ namespace Bit.Core.Services
{
throw new BadRequestException("Not enough storage available.");
}
*/
var fileId = Utilities.CoreHelpers.SecureRandomString(32, upper: false, special: false);
await _sendFileStorageService.UploadNewFileAsync(stream, send, fileId);