openedx / openedx/frontend-app-authoring

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

Open
#1,505 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
17
Forks
218
Avg merge
9d 20h
Merged PRs (30d)
20

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the course-creation flow in Studio as an unprivileged user and inspect the frontend handling of the POST /course request that returns 403. Done means the failed request is caught and the user sees an error explaining that they are not allowed to create a course in the organization.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.