Skip to content

Commit ad4b55f

Browse files
committed
refactor: improve glob registration logic in ScopeMeta
1 parent 606252d commit ad4b55f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

openedx_authz/api/data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ def __init__(cls, name, bases, attrs):
162162
if not hasattr(cls, "glob_registry"):
163163
cls.glob_registry = {}
164164

165-
# Register glob classes (they have 'Glob' in their name)
166-
if "Glob" in name and cls.NAMESPACE:
165+
if cls.IS_GLOB and cls.NAMESPACE:
167166
cls.glob_registry[cls.NAMESPACE] = cls
168167
else:
169168
cls.scope_registry[cls.NAMESPACE] = cls

0 commit comments

Comments
 (0)