-
Notifications
You must be signed in to change notification settings - Fork 8
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
WIP - Course copy changes #412
base: main
Are you sure you want to change the base?
Conversation
- Move lti_launches to global schema - Add lti_contexts and lti_platform_instances tables
For LTI 1.2 launches, we won't have a deployment_id, so add a unique index by context_id with deployment_id null.
@@ -189,6 +189,10 @@ def set_lti_launch_values | |||
@is_lti_launch = true | |||
@canvas_url = current_application_instance.site.url | |||
@app_name = current_application_instance.application.client_application_name | |||
context_id = params[:context_id] | |||
if current_user&.can_author?(context_id, current_application_instance) | |||
@can_author = true |
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.
This seems like it may be AA specific that accidentally got merged in upstream? I can see the method exists on the user as well, which is kinda weird.
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.
Here it means the lti roles are teacher or admin, which I'm using to determine when the user can resolve a launch issue. There might be a better way to do this.
This is a work in progress of some changes to support course copy