Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating online users #1

Open
jmarkling opened this issue Aug 7, 2014 · 0 comments
Open

Updating online users #1

jmarkling opened this issue Aug 7, 2014 · 0 comments

Comments

@jmarkling
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant