1
This commit is contained in:
parent
bb6e904258
commit
751ad5fd96
@ -147,7 +147,7 @@ namespace asg_form.Controllers
|
||||
[Authorize]
|
||||
public async Task<ActionResult<object>> blackDel([FromQuery] string idFind)
|
||||
{
|
||||
if (!this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin") || !this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin"))
|
||||
if (!this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin") && !this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin"))
|
||||
{
|
||||
return Ok(new error_mb { code = 401, message = "无权访问" });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user