diff --git a/ServiceHost/Areas/Admin/Controllers/LawController.cs b/ServiceHost/Areas/Admin/Controllers/LawController.cs index 166dea37..d4a3efa6 100644 --- a/ServiceHost/Areas/Admin/Controllers/LawController.cs +++ b/ServiceHost/Areas/Admin/Controllers/LawController.cs @@ -1,5 +1,6 @@ using _0_Framework.Application; using CompanyManagment.App.Contracts.Law; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using ServiceHost.BaseControllers; @@ -30,6 +31,7 @@ public class LawController : AdminBaseController /// نوع قانون /// [HttpGet("by-type/{type}")] + [AllowAnonymous] public async Task> GetLawByType(LawType type) { return await _lawApplication.GetLawByType(type);