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

Fix lecture creation #752

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Fix lecture creation #752

wants to merge 2 commits into from

Conversation

fosterfarrell9
Copy link
Collaborator

@fosterfarrell9 fosterfarrell9 commented Feb 24, 2025

This fixes #739. Turns out it was just a conditional that was forgotten in the restructuring of access rights in #671: Since there does no longer appear a form where you can select the teacher (unless you are admin), the javascript produced by lectures/new.coffee crashes. This has no consequence on /administration (where the exception also occurs), but on courses/:id/edit this prevents the modal from popping up.

I guess, some cypress tests should still be written for that.

UPDATE: After I had introduced the missing conditional in this commit I decided it might be better just to let the backend do the job, so i just removed the corresponding js.

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.

1 participant