Skip to content

Commit 377c249

Browse files
committed
refactor: rename variable
1 parent 7c0d757 commit 377c249

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openedx_authz/api/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,8 @@ def validate_external_key(cls, external_key: str) -> bool:
817817
return False
818818

819819
# Enforce explicit org-level separator: 'course-v1:ORG+*'
820-
glob_suffix = cls.ID_SEPARATOR + GLOBAL_SCOPE_WILDCARD
821-
if not external_key.endswith(glob_suffix):
820+
suffix = cls.ID_SEPARATOR + GLOBAL_SCOPE_WILDCARD
821+
if not external_key.endswith(suffix):
822822
return False
823823

824824
org = cls.get_org(external_key)

0 commit comments

Comments
 (0)