Description
When authz.enable_course_authoring is enabled, a non-admin instructor user with course creator access for all organizations is unable to create a course from Studio.
The user can open the New course form and the organization dropdown is populated with available organizations. However, after filling out the course creation form and clicking Create, the POST /course/ request returns a 403.
This suggests that the user is allowed to see/select organizations in the course creation form, but the course creation permission check fails when submitting the form.
Steps to reproduce
- Enable
authz.enable_course_authoring.
- Log in to Studio as a non-admin instructor user.
- Grant the user course creator access for all organizations from Django admin.
- Go back to Studio as the instructor user.
- Open the New course form.
- Fill in the course creation fields. Press create.
Expected behavior
The course should be created successfully.
Actual behavior
The course is not created. The POST /course/ request returns a 403 with the following response:
{
"error": "User does not have the permission to create courses in this organization or course creation is disabled"
}
It only works when the flag authz.enable_course_authoring is off.
Description
When
authz.enable_course_authoringis enabled, a non-admin instructor user with course creator access for all organizations is unable to create a course from Studio.The user can open the New course form and the organization dropdown is populated with available organizations. However, after filling out the course creation form and clicking Create, the
POST /course/request returns a 403.This suggests that the user is allowed to see/select organizations in the course creation form, but the course creation permission check fails when submitting the form.
Steps to reproduce
authz.enable_course_authoring.Expected behavior
The course should be created successfully.
Actual behavior
The course is not created. The POST /course/ request returns a 403 with the following response:
It only works when the flag
authz.enable_course_authoringis off.