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

[BB-3622] Port the add course creation condition for organisation for koa.3 #423

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

farhaanbukhsh
Copy link
Member

Ths PR ports the functionality introduced in https://github.com/edx/edx-platform/pull/26616

JIRA tickets: BB-3622

Discussions: Link to any public dicussions about this PR or the design/architecture. Otherwise omit this.

Dependencies: None

Screenshots: Upstream PR

Sandbox URL: TBD - sandbox is being provisioned.

Merge deadline: "None" if there's no rush, "ASAP" if it's critical, or provide a specific date if there is one.

Testing instructions:

Upstream PR

Author notes and concerns:

None

Reviewers


…6616)

Current State (before this commit):

  Studio, as of today doesn't have a way to restrict a user to
  create a course in a particular organization. What Studio
  provides right now is a CourseCreator permission which gives
  an Admin the power to grant a user the permission to create
  a course.

  For example: If the Admin has given a user Spiderman the
  permission to create courses, Spiderman can now create courses
  in any organization i.e Marvel as well as DC.
  There is no way to restrict Spiderman from creating courses
  under DC.

Purpose of this commit:

  The changes done here gives Admin the ability to restrict a
  user on an Organization level from creating courses via the
  Course Creators section of the Studio Django administration
  panel.

  For example: Now, the Admin can give the user Spiderman the
  privilege of creating courses only under Marvel organization.
  The moment Spiderman tries to create a course under some
  other organization(i.e DC), Studio will show an error message.

  This change is available to all Studio instances that
  enable the FEATURES['ENABLE_CREATOR_GROUP'] flag.
  Regardless of the flag, it will not affect any instances that choose
  not to use it.

BB-3622
Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
@0x29a
Copy link
Member

0x29a commented Oct 4, 2021

@farhaanbukhsh, I can't immediately understand why we're reverting #352 here. Could you explain?

@farhaanbukhsh
Copy link
Member Author

farhaanbukhsh commented Oct 4, 2021

@farhaanbukhsh, I can't immediately understand why we're reverting #352 here. Could you explain?

@0x29a We are not just reverting #352, it got upstreamed in a much cleaner way, this is just to port the clean fix from upstream to our branch. And in order to do that we need to revert those changes.

We no longer need a feature flag for this fix and it gives users a better way to associate the course creator to an organization through the admin interface.

Copy link
Member

@0x29a 0x29a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

  • I tested this: registered new user and checked that course access roles are being created / removed as described in the parent pull request.
  • I read through the code.
  • Includes documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants