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

Users who attempt to create courses without access rights should get an error message #1505

Open
regisb opened this issue Nov 15, 2024 · 2 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@regisb
Copy link
Contributor

regisb commented Nov 15, 2024

Unprivileged users who attempt to create a course fail to do so (rightly) and no error message is displayed (and that is the actual issue).

How to reproduce:

  1. Sign up/login as unprivileged user
  2. Go to the studio and attempt to create a course
  3. Click "Create": nothing happens.

In the background, a POST http:///course request is made, with a 403 response. But that error is not caught in the frontend and no error message is displayed.

Instead, there should be an error message that basically says "You are not allowed to create a new course within this organization".

This issue was described here: https://discuss.openedx.org/t/sandbox-studio-does-not-create-course/14010/6
Here's a screencast that highlights the issue: https://drive.google.com/file/d/1hUQfxV4BvPZy8kwhF10ITpXTm91yLze1/view?usp=sharing

@regisb regisb added the bug Report of or fix for something that isn't working as intended label Nov 15, 2024
@KristinAoki
Copy link
Member

@regisb there PR #1079 in progress to add more error messages when trying to render pages. Will you leave a comment there so that the author can make sure this case is included.

@arbrandes
Copy link
Contributor

The fix was merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

3 participants