Skip to content

Commit 21bfc30

Browse files
committed
squash!: Remove unecessary class inheritance
1 parent d806435 commit 21bfc30

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

openedx_authz/rest_api/v1/permissions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,12 @@ def validate_permissions(self, request, permissions: list[str], scope_value: str
259259
return True
260260

261261

262-
class AnyScopePermission(MethodPermissionMixin, BaseScopePermission):
262+
class AnyScopePermission(MethodPermissionMixin, BasePermission):
263263
"""Permission handler for endpoints that are not tied to a specific scope.
264264
265265
Grants access if the user has at least one of the required permissions in any scope.
266266
"""
267267

268-
# Not a namespace-specific handler; set to None to avoid registration in PermissionMeta.
269-
NAMESPACE: ClassVar[None] = None
270-
271268
def has_permission(self, request, view) -> bool:
272269
"""Check if the user has any of the required permissions across all scopes.
273270

0 commit comments

Comments
 (0)