From a4cd6b839f6addf6388fe06a35b365fbd7c9b9c4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 22 Jun 2022 03:18:13 +0000 Subject: [PATCH] --- server/AyaNova/Controllers/LicenseController.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/server/AyaNova/Controllers/LicenseController.cs b/server/AyaNova/Controllers/LicenseController.cs index 52c67f17..61cb238c 100644 --- a/server/AyaNova/Controllers/LicenseController.cs +++ b/server/AyaNova/Controllers/LicenseController.cs @@ -299,22 +299,6 @@ namespace AyaNova.Api.Controllers return NoContent(); } - /// - /// Get status of licensed integration feature - /// - /// Integration feature name - /// true if feature is available - [HttpGet("has-feature/{feature}")] - public ActionResult GetHasLicensedFeature([FromRoute] string feature) - { - if (!serverState.IsOpen) - return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason)); - //any authenticated user can check if a feature is available since we don't know what optional add-on's will be created in future and for which roles - //safest and logical to just work for any logged in user - return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.HasLicenseFeature(feature))); - } - - //------------------------------------------------------