diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-08 18:24:48 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-08 18:24:48 +0300 |
| commit | ecbfb8cd55ac718f75787817f6fdb833234e6a57 (patch) | |
| tree | 48d02c5ad3c46118a7a9fb22609988f3eddc4608 /ExamTemplate/Web/Controllers | |
| parent | b06ba4e35c1c1303b72602628be51264f881f05c (diff) | |
| download | it-kariera-exam-template-ecbfb8cd55ac718f75787817f6fdb833234e6a57.tar it-kariera-exam-template-ecbfb8cd55ac718f75787817f6fdb833234e6a57.tar.gz it-kariera-exam-template-ecbfb8cd55ac718f75787817f6fdb833234e6a57.zip | |
Simplified account edit authorization
Diffstat (limited to 'ExamTemplate/Web/Controllers')
| -rw-r--r-- | ExamTemplate/Web/Controllers/AccountController.cs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ExamTemplate/Web/Controllers/AccountController.cs b/ExamTemplate/Web/Controllers/AccountController.cs index 7fb7ab3..0424070 100644 --- a/ExamTemplate/Web/Controllers/AccountController.cs +++ b/ExamTemplate/Web/Controllers/AccountController.cs @@ -106,9 +106,6 @@ namespace ExamTemplate.Web.Controllers [HttpPost] public async Task<IActionResult> Edit(EditUserViewModel editUserViewModel) { - if (!await this._userService.IsAuthorizedToModify(HttpContext.User, editUserViewModel.OriginalUsername)) - return new UnauthorizedResult(); - if (!ModelState.IsValid) return View(editUserViewModel); |
