forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from ucsd-ets/alisalman/restrict-users
Only allow certain email to access courses
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1028,7 +1028,18 @@ class CourseFields(object): | |
), | ||
scope=Scope.settings | ||
) | ||
|
||
restricted_organizations = List( | ||
display_name=_("Restrict Course"), | ||
help=_( | ||
"Restrict course only to certain organizations, " | ||
"the default values is ['*'], it means all organization can access this course. " | ||
"To only allow ucsd emails, replace list with [\"ucsd.\"]. This allow all domains of ucsd i.e [email protected], [email protected]." | ||
"To further restric top level domains you can specify [domain].[top-level-domaain] i.e [\"ucsd.com\", \"ucsd.ca\", \"gmail.com\"]. " | ||
"Similary, you can add as many domains in the list to allow specific organization students to access this course" | ||
), | ||
scope=Scope.settings, | ||
default=['*'], | ||
) | ||
|
||
class CourseModule(CourseFields, SequenceModule): # pylint: disable=abstract-method | ||
""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters