Skip to content

Commit aa9d884

Browse files
committed
Remove Authorize attributes on a couple of API calls
- Issues with policies not registered when auth is disabled (which is default), makes these two API calls fail. Disabled for now, and roles will soon be replaced with path-based permissions.
1 parent 9ed85ef commit aa9d884

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Blockcore/Controllers/NodeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public async Task<IActionResult> GetTxOutAsync([FromQuery] string trxid, uint vo
477477
/// <seealso cref="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests"/>
478478
/// </remarks>
479479
/// <returns><see cref="OkResult"/></returns>
480-
[Authorize(Policy = "OnlyAdmins")]
480+
//[Authorize(Policy = "OnlyAdmins")]
481481
[HttpPost]
482482
[Route("shutdown")]
483483
[Route("stop")]
@@ -495,7 +495,7 @@ public IActionResult Shutdown([FromBody] bool corsProtection = true)
495495
/// </summary>
496496
/// <param name="request">The request containing the loggers to modify.</param>
497497
/// <returns><see cref="OkResult"/></returns>
498-
[Authorize(Policy = "OnlyAdmins")]
498+
//[Authorize(Policy = "OnlyAdmins")]
499499
[HttpPut]
500500
[Route("loglevels")]
501501
public IActionResult UpdateLogLevel([FromBody] LogRulesRequest request)

0 commit comments

Comments
 (0)