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

Properly triggers login on API 403. #4450

Merged
merged 2 commits into from
Sep 23, 2015

Conversation

rtibbles
Copy link
Member

Fixes #4449

Currently, if you are logged out and an API request returns a 403 forbidden, then our modal login does not get triggered (it will produce a Javascript error instead).

To test this, go to developer console, resources, and delete the sessionId cookie while on the video download page.

@rtibbles rtibbles added this to the 0.15.0 milestone Sep 18, 2015
window.userView.login_start_open = true;
});
window.toggleNavbarView.userView.login_start_open = true;
window.statusModel.fetch();

This comment was marked as spam.

@rtibbles
Copy link
Member Author

@66eli77 This should fix the issue!

@66eli77
Copy link
Contributor

66eli77 commented Sep 23, 2015

cool, verified, merging

66eli77 added a commit that referenced this pull request Sep 23, 2015
Properly triggers login on API 403.
@66eli77 66eli77 merged commit fb9100f into learningequality:0.15.x Sep 23, 2015
@rtibbles rtibbles deleted the forbidden_fix branch March 2, 2016 16:25
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.

3 participants