You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have one simple question, how to update a users roles when he is aldready login...
I want to update a users role on the fly:
Something like this:
... check user
var roles = new List();
roles.Add("NormalUser");
roles.Add("CreateOffer");
var currentUser = User.Identity.GetUserId();
await UserManager.AddToRolesAsync(currentUser, roles: roles.ToArray());
The problem is that I can only regonize with the new role after he has sign out and in again, how can I update the current user?
The text was updated successfully, but these errors were encountered:
Hi
I have one simple question, how to update a users roles when he is aldready login...
I want to update a users role on the fly:
Something like this:
... check user
var roles = new List();
roles.Add("NormalUser");
roles.Add("CreateOffer");
var currentUser = User.Identity.GetUserId();
await UserManager.AddToRolesAsync(currentUser, roles: roles.ToArray());
The problem is that I can only regonize with the new role after he has sign out and in again, how can I update the current user?
The text was updated successfully, but these errors were encountered: