mirror of
https://github.com/bitwarden/server
synced 2025-12-19 17:53:44 +00: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