File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
eFormAPI/eFormAPI.Web/Controllers Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,11 @@ public async Task<IActionResult> Csv(int id)
5555 return File ( fileStream , "application/octet-stream" , fileName ) ;
5656 }
5757
58- [ HttpGet ]
58+ [ HttpGet ]
59+ [ AllowAnonymous ]
5960 [ Route ( "api/template-files/get-image/{fileName}.{ext}" ) ]
60- [ Authorize ( AuthenticationSchemes = CookieAuthenticationDefaults . AuthenticationScheme ,
61- Policy = AuthConsts . EformPolicies . Cases . CasesRead ) ]
61+ // [Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme,
62+ // Policy = AuthConsts.EformPolicies.Cases.CasesRead)]
6263 public IActionResult GetImage ( string fileName , string ext , string noCache = "noCache" )
6364 {
6465 var core = _coreHelper . GetCore ( ) ;
Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ public IActionResult GetLoginPageImage(string fileName)
6060 return File ( fileStream , $ "image/{ extention } ") ;
6161 }
6262
63- [ HttpPost ]
64- [ Authorize ( Roles = EformRole . Admin , AuthenticationSchemes = CookieAuthenticationDefaults . AuthenticationScheme ) ]
63+ [ HttpPost ]
64+ [ AllowAnonymous ]
65+ // [Authorize(Roles = EformRole.Admin, AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
6566 [ Route ( "api/images/login-page-images" ) ]
6667 public async Task < IActionResult > PostLoginPageImages ( IFormFile file )
6768 {
@@ -97,8 +98,9 @@ public async Task<IActionResult> PostLoginPageImages(IFormFile file)
9798 return BadRequest ( _localizationService . GetString ( "InvalidRequest" ) ) ;
9899 }
99100
100- [ HttpPost ]
101- [ Authorize ( Roles = EformRole . Admin , AuthenticationSchemes = CookieAuthenticationDefaults . AuthenticationScheme ) ]
101+ [ HttpPost ]
102+ [ AllowAnonymous ]
103+ // [Authorize(Roles = EformRole.Admin, AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
102104 [ Route ( "api/images/eform-images" ) ]
103105 public async Task < IActionResult > PostEformImages ( IFormFile file )
104106 {
You can’t perform that action at this time.
0 commit comments