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

Avoid separate context from policy service #3982

Merged
merged 1 commit into from
May 17, 2017

Conversation

chenriksson
Copy link
Member

Issue found in DEV: SecurityPolicyService.SubscribeAsync adds user policies but EF wasn't saving the changes to the DB. The issue is that the controller and service have different EF contexts, resulting in a user from the controller being in a detached state when it reaches the policy service.

Changing back to InstancePerLifetimeScope results in the same EF context instance.

@chenriksson chenriksson merged commit 01d0a4a into dev May 17, 2017
@chenriksson chenriksson deleted the chenriks-tempkeys-onboardfix branch May 17, 2017 23:22
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

Successfully merging this pull request may close these issues.

4 participants