Skip to content

Commit

Permalink
docs: imporved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhaugh authored and feanil committed Jul 25, 2024
1 parent df635e0 commit 25437d2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cms/djangoapps/contentstore/views/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ def user_can_create_library(user, org):
Helper method for returning the library creation status for a particular user,
taking into account the value LIBRARIES_ENABLED.
users can only create libraries in orgs they are a part of.
if the ENABLE_CREATOR_GROUP value is False, then any user can create a library (in any org),
if library creation is enabled.
if the ENABLE_CREATOR_GROUP value is true, then what a user can do varies by thier role.
Global Staff: can make libraries in any org.
Course Creator Group Members: can make libraries in any org.
Organization Staff: Can make libraries in the organization for which they are staff.
Course Staff: Can make libraries in the organization which has courses of which they are staff.
Course Admin: Can make libraries in the organization which has courses of which they are Admin.
"""
if org is None:
return False
Expand Down

0 comments on commit 25437d2

Please sign in to comment.