File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ Unreleased
1616
1717*
1818
19+ 0.11.2 - 2025-10-30
20+ ********************
21+
22+ Added
23+ =====
24+
25+ * Consider Content Library V2 toggle only in CMS service variant.
26+
19270.11.1 - 2025-10-29
2028********************
2129
Original file line number Diff line number Diff line change 44
55import os
66
7- __version__ = "0.11.1 "
7+ __version__ = "0.11.2 "
88
99ROOT_DIRECTORY = os .path .dirname (os .path .abspath (__file__ ))
Original file line number Diff line number Diff line change 2323
2424from openedx_authz .engine .adapter import ExtendedAdapter
2525
26- try :
27- from cms .djangoapps .contentstore .toggles import libraries_v2_enabled
28- except ImportError :
29- # If the CMS is not available, define a dummy toggle that is always enabled
30- def libraries_v2_enabled () -> bool :
31- """Dummy toggle that is always enabled."""
32- return True
3326
27+ def libraries_v2_enabled () -> bool :
28+ """Dummy toggle that is always enabled."""
29+ return True
30+
31+
32+ if getattr (settings , "SERVICE_VARIANT" , None ) == "cms" :
33+ try :
34+ from cms .djangoapps .contentstore .toggles import libraries_v2_enabled
35+ except ImportError :
36+ # If the CMS is not available, use the dummy toggle.
37+ pass
3438
3539logger = logging .getLogger (__name__ )
3640
You can’t perform that action at this time.
0 commit comments