Skip to content

Commit

Permalink
do not check login permission when logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Jun 3, 2024
1 parent fb98efd commit 4878917
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions TASVideos.Core/Services/SignInManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ public class SignInManager(
return (SignInResult.Failed, null);
}

var claims = await userManager.AddUserPermissionsToClaims(user);
var canLogIn = claims.Permissions().Contains(PermissionTo.Login);

if (!canLogIn)
{
return (SignInResult.NotAllowed, user);
}

var result = await PasswordSignInAsync(
userName,
password,
Expand Down

0 comments on commit 4878917

Please sign in to comment.