diff options
Diffstat (limited to 'ExamTemplate/Services/UserService.cs')
| -rw-r--r-- | ExamTemplate/Services/UserService.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ExamTemplate/Services/UserService.cs b/ExamTemplate/Services/UserService.cs index e78443a..2f137a1 100644 --- a/ExamTemplate/Services/UserService.cs +++ b/ExamTemplate/Services/UserService.cs @@ -81,12 +81,5 @@ namespace ExamTemplate.Services {
return this._signInManager.IsSignedIn(claimsPrincipal);
}
-
- public async Task<bool> IsAuthorizedToModify(ClaimsPrincipal claimsPrincipal, string username)
- {
- User user = await this._userManager.GetUserAsync(claimsPrincipal);
-
- return user.UserName == username || await this._userManager.IsInRoleAsync(user, "Administrator");
- }
}
}
|
