mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
verify and disable premium from license check
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using System;
|
||||
using Bit.Core.Models.Business;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bit.Core.Services
|
||||
{
|
||||
@ -27,9 +28,9 @@ namespace Bit.Core.Services
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool VerifyUserPremium(User user)
|
||||
public Task<bool> VerifyUserPremiumAsync(User user)
|
||||
{
|
||||
return user.Premium;
|
||||
return Task.FromResult(user.Premium);
|
||||
}
|
||||
|
||||
public byte[] SignLicense(ILicense license)
|
||||
|
Reference in New Issue
Block a user