mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
self hosted org users get premium access
This commit is contained in:
parent
582728a083
commit
fcd63a66e0
@ -944,6 +944,14 @@ namespace Bit.Core.Services
|
||||
await _mailService.SendOrganizationConfirmedEmailAsync(org.Name, user.Email);
|
||||
}
|
||||
|
||||
// self-hosted org users get premium access
|
||||
if(_globalSettings.SelfHosted && !user.Premium && org.Enabled)
|
||||
{
|
||||
user.Premium = true;
|
||||
user.MaxStorageGb = 10240; // 10 TB
|
||||
await _userRepository.ReplaceAsync(user);
|
||||
}
|
||||
|
||||
// push
|
||||
var deviceIds = await GetUserDeviceIdsAsync(orgUser.UserId.Value);
|
||||
await _pushRegistrationService.AddUserRegistrationOrganizationAsync(deviceIds, organizationId.ToString());
|
||||
|
Loading…
Reference in New Issue
Block a user