Merge pull request #19166 from edx/rev/content-gating-waffle

Rev/content gating waffle
This commit is contained in:
Bessie Steinberg
2018-10-31 14:50:15 -04:00
committed by GitHub
13 changed files with 242 additions and 38 deletions

View File

@@ -255,7 +255,7 @@ class UserPartition(namedtuple("UserPartition", "id name description groups sche
"""
return None
def access_denied_fragment(self, block, user, course_key, user_group, allowed_groups):
def access_denied_fragment(self, block, user, user_group, allowed_groups):
"""
Return an html fragment that should be displayed to the user when they are not allowed to access
content managed by this partition, or None if there is no applicable message.

View File

@@ -8,10 +8,7 @@ from django.utils.translation import ugettext_lazy as _
import logging
from openedx.core.lib.cache_utils import request_cached
from openedx.features.content_type_gating.partitions import (
CONTENT_GATING_PARTITION_ID,
create_content_gating_partition,
)
from openedx.features.content_type_gating.partitions import create_content_gating_partition
from xmodule.partitions.partitions import (
UserPartition,
UserPartitionError,