-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fixed course being accessed from a different org site #588
base: develop-koa
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to test it thoroughly for its ripple affects. Please coordinate with QA accordingly.
c976c38
to
77adf8e
Compare
lms/djangoapps/course_wiki/views.py
Outdated
course_key = CourseKey.from_string(course_id) | ||
course = get_course_by_id(course_key) | ||
check_if_course_org_in_site_org_filters(course_key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we course objects when check_if_course_org_in_site_org_filters is also doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the function to use is_course_org_same_as_site_org
from edly app, now the course object is only fetched in the view.
77adf8e
to
59ca33e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR fixes the issue of a course from different organization being accessed on LMS site of another one.
JIRA: https://edlyio.atlassian.net/browse/EDLY-7116