Skip to content

Commit

Permalink
fix: Remove permission IsSubscriptionWorkerUser
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Aug 13, 2024
1 parent 342ae69 commit 9ec2205
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions common/djangoapps/entitlements/rest_api/v1/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


from django.conf import settings
from rest_framework.permissions import SAFE_METHODS, BasePermission

from lms.djangoapps.courseware.access import has_access
Expand All @@ -22,12 +21,3 @@ def has_permission(self, request, view):
return request.user.is_authenticated
else:
return request.user.is_staff or has_access(request.user, "support", "global")


class IsSubscriptionWorkerUser(BasePermission):
"""
Method that will require the request to be coming from the subscriptions service worker user.
"""

def has_permission(self, request, view):
return request.user.username == settings.SUBSCRIPTIONS_SERVICE_WORKER_USERNAME

0 comments on commit 9ec2205

Please sign in to comment.