Skip to content

Commit

Permalink
Merge pull request #457 from appsembler/amir/enableViewAsSpecificStudent
Browse files Browse the repository at this point in the history
Prevent 500 error when staff tries to see discussion  as specific student
  • Loading branch information
bryanlandia authored Jan 13, 2020
2 parents 0cae82e + d34b7e6 commit b0ef5b7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class DiscussionXBlock(XBlock, StudioEditableXBlockMixin, XmlParserMixin):
"""
Provides a discussion forum that is inline with other content in the courseware.
"""

# Enable view as specific student
show_in_read_only_mode = True

discussion_id = String(scope=Scope.settings, default=UNIQUE_ID)
display_name = String(
display_name=_("Display Name"),
Expand Down

0 comments on commit b0ef5b7

Please sign in to comment.