[AllowAnonymous] Controll

This commit is contained in:
Mohaimen Hasan 2026-11-08 10:49:54 +06:00
parent 81262f19d6
commit 3aca487ee6
5 changed files with 7 additions and 7 deletions

View File

@ -980,7 +980,7 @@ namespace HRM.UI.Controllers
[HttpGet] [HttpGet]
[Route("getAdminPayrollTypes")] [Route("getAdminPayrollTypes")]
[AllowAnonymous] //[AllowAnonymous]
public ActionResult GetAdminPayrollTypes() public ActionResult GetAdminPayrollTypes()
{ {
CurrentUser currentUser = CurrentUser.GetCurrentUser(HttpContext.User); CurrentUser currentUser = CurrentUser.GetCurrentUser(HttpContext.User);

View File

@ -1409,7 +1409,7 @@ namespace HRM.UI.Controllers.Basic
return Ok(items); return Ok(items);
} }
[HttpPost("uploadHallOfFame")] [HttpPost("uploadHallOfFame")]
[AllowAnonymous] //[AllowAnonymous]
public ActionResult uploadHallOfFame() public ActionResult uploadHallOfFame()
{ {
HallOfFame item = new HallOfFame(); HallOfFame item = new HallOfFame();

View File

@ -3000,7 +3000,7 @@ namespace HRM.UI
[HttpPost] [HttpPost]
[Route("compareFSUploadData")] [Route("compareFSUploadData")]
[AllowAnonymous] //[AllowAnonymous]
public ActionResult CompareFSUploadData() public ActionResult CompareFSUploadData()
{ {

View File

@ -834,7 +834,7 @@ namespace HRM.UI.Controllers
[HttpPost] [HttpPost]
[Route("get-download-file")] [Route("get-download-file")]
[AllowAnonymous] //[AllowAnonymous]
[IgnoreAntiforgeryToken] [IgnoreAntiforgeryToken]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
public async Task<IActionResult> GetDownloadFile(dynamic data) public async Task<IActionResult> GetDownloadFile(dynamic data)
@ -867,7 +867,7 @@ namespace HRM.UI.Controllers
[HttpPost] [HttpPost]
[Route("get-download-file-cv")] [Route("get-download-file-cv")]
[AllowAnonymous] //[AllowAnonymous]
[IgnoreAntiforgeryToken] [IgnoreAntiforgeryToken]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
public async Task<IActionResult> GetDownloadFileCV(dynamic data) public async Task<IActionResult> GetDownloadFileCV(dynamic data)
@ -2907,7 +2907,7 @@ namespace HRM.UI.Controllers
//} //}
[HttpPost("readPDf")] [HttpPost("readPDf")]
[AllowAnonymous] //[AllowAnonymous]
public ActionResult readPDF() public ActionResult readPDF()
{ {
var remoteIpAddress = HttpContext.Connection.RemoteIpAddress; var remoteIpAddress = HttpContext.Connection.RemoteIpAddress;

View File

@ -496,7 +496,7 @@ namespace HRM.UI.Controllers
#endregion #endregion
[HttpPost("uploadTrainingMaterialfiles")] [HttpPost("uploadTrainingMaterialfiles")]
[AllowAnonymous] //[AllowAnonymous]
public ActionResult uploadTrainingMaterialfiles(List<IFormFile> files) public ActionResult uploadTrainingMaterialfiles(List<IFormFile> files)
{ {
//empFileupload item = new empFileupload(); //empFileupload item = new empFileupload();