Skip to content

Commit

Permalink
Merge pull request #1645 from BRiley01/feature/permission-correction
Browse files Browse the repository at this point in the history
Fixed incorrect policy check on UserController.cs Delete
  • Loading branch information
tidyui authored Jun 13, 2021
2 parents 513565f + b16519f commit 34439ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public async Task<IActionResult> Save([FromBody] UserEditModel model)
/// <param name="id">The user id</param>
[HttpGet]
[Route("/manager/user/delete/{id:Guid}")]
[Authorize(Policy = Permissions.UsersSave)]
[Authorize(Policy = Permissions.UsersDelete)]
public async Task<IActionResult> Delete(Guid id)
{
var user = _db.Users.FirstOrDefault(u => u.Id == id);
Expand Down

0 comments on commit 34439ee

Please sign in to comment.