This commit is contained in:
pavelbannov 2023-05-16 19:58:23 +03:00
parent bb70294faa
commit ba6eeb623f

View File

@ -28,8 +28,6 @@ namespace ASC.Web.Api.Controllers.Settings;
public class LicenseController : BaseSettingsController
{
private Tenant Tenant { get { return ApiContext.Tenant; } }
private readonly MessageService _messageService;
private readonly FirstTimeTenantSettings _firstTimeTenantSettings;
private readonly UserManager _userManager;
@ -199,8 +197,13 @@ public class LicenseController : BaseSettingsController
if (!_authContext.IsAuthenticated && _settingsManager.Load<WizardSettings>().Completed)
{
throw new SecurityException(Resource.PortalSecurity);
}
}
if (!_coreBaseSettings.Standalone)
{
throw new NotSupportedException();
}
if (!inDto.Files.Any())
{
throw new Exception(Resource.ErrorEmptyUploadFileSelected);