Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions common/lib/xmodule/xmodule/seq_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,6 @@ def _render_student_view_for_items(self, context, display_items, fragment, view=
item_type = item.get_icon_class()
usage_id = item.scope_ids.usage_id

if item_type == 'problem' and not is_user_authenticated:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question: the whole block is classified as "problem" if there is a graded element in it?

@morenol morenol Nov 21, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is being used the icon class to define the type of an unit. If there is a component(child) in the unit with 'problem' as icon class then the icon class of the unit is "problem". Those cases are the ones that are failing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, they said it in the comments, getting the type from the icon class is kinda weird

log.info(
'Problem [%s] was not rendered because anonymous access is not allowed for graded content',
usage_id
)
continue

show_bookmark_button = False
is_bookmarked = False

Expand Down