The problem is a mistake in the signature of the overriding method. Namely a missing async.
public override async Task<bool> IsGrantedAsync(long userId, Permission permission)
{
}
Now, onto making the actual functionality in the IsGrantedAsync.
Cheers
Hi ismcagdas, Thanks for the reply. I have tried to override the functionality in UserManager, but invoking even simple things seems to result in a hanging process. E.g.
public override Task<bool> IsGrantedAsync(long userId, Permission permission)
{
var permissionGrantInfo = this.AbpStore.GetPermissionsAsync(userId).Result;
return base.IsGrantedAsync(userId, permission);
}
Is it illigal to call this.AbpStore.GetPermissionsAsync(userId).Result; in the UserManager? I have triede several other invocations, but they all end in a hanging process. Same behaviour in 1.5.x and 2.0.2.
If I leave this in as the only code, then it works as normal. return base.IsGranted(...)
Br Kim