You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Discussion: leftover changes from the built-in Discussion block #370
Found while reviewing openedx/openedx-platform#38749, which removed the built-in Discussion block. Checked at xblocks-core 7dc8ff8a against the built-in files on platform master before the removal (9d80ff8e9f^).
Platform change not fully ported
Discussion service to enable permission and access provider openedx-platform#37912 changed the block to call is_discussion_enabled(). src/xblock_discussion/block.py:184 still uses self.discussion_config.is_discussion_enabled without (). The method object is always truthy, so the inline discussion renders even when ENABLE_DISCUSSION_SERVICE is False.
The same PR made is_visible and the enabled check return False when the runtime has no discussion_config_service. block.py:112 and :184 use the service without that guard, so they raise AttributeError instead. has_permission (:142) still has the guard.
Activity