Merge branch 'main' of http://192.168.86.70:3000/admin/gameauthapi
This commit is contained in:
@@ -94,7 +94,7 @@ public class PlayerController : ControllerBase
|
||||
}
|
||||
|
||||
[HttpPut]
|
||||
[Authorize(Roles = "USER,SUPER")]
|
||||
[Authorize(Roles = "SUPER")]
|
||||
public async Task<IActionResult> Update([FromBody] UpdatePlayerRequest req)
|
||||
{
|
||||
var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
@@ -109,7 +109,7 @@ public class PlayerController : ControllerBase
|
||||
}
|
||||
|
||||
[HttpDelete]
|
||||
[Authorize(Roles = "USER,SUPER")]
|
||||
[Authorize(Roles = "SUPER")]
|
||||
public async Task<IActionResult> Delete()
|
||||
{
|
||||
var userId = User.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
|
||||
Reference in New Issue
Block a user