Add Content Type Gating Behind Waffle Flag

Content Type Gating: Xblocks that have a graded component cannot be
accessed by audit track users.
  - Caveats:
    - In studio, instructors can set certain xblocks to be available to
      all users, but graded components will default to not being
      available for audit users
    - If a course does not have a verified mode option, all users will
      have access to graded content.

The Waffle Flag: The waffle flag is of for now.
  It's name is: ```content_type_gating.debug```

This Commit Does NOT Include: Displaying for a user WHY they do not have
access to a specific piece of content.  That change will be part of
another PR.
This commit is contained in:
Calen Pennington
2018-10-15 13:20:38 -04:00
committed by Bessie Steinberg
parent 2ff3a38d91
commit 83d676cbfa
13 changed files with 242 additions and 38 deletions

View File

@@ -114,6 +114,7 @@ from lms.envs.common import (
FILE_UPLOAD_STORAGE_PREFIX,
COURSE_ENROLLMENT_MODES,
CONTENT_TYPE_GATE_GROUP_IDS,
HELP_TOKENS_BOOKS,