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?
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?