0
acmeware created
Hi, I need to create a method to override certain permissions regardless of what is in the table.
In my UserManager.cs I added this hard-code to test out where to do this. It is not working, the user still has permission to this page. Where should I override permissions in this way if not here?
public override async Task<bool> IsGrantedAsync(long userId, Permission permission)
{
if (permission.Name == "Pages.ConnectionLogs.Create")
{
return false;
}
return await base.IsGrantedAsync(userId, permission);
}