Skip to content

Commit

Permalink
refactor: convert the user consent flow handler method to static
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed Aug 3, 2023
1 parent d59695a commit 1295492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enterprise/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,8 @@ def post(self, request, enterprise_uuid, course_id):

return redirect(premium_flow)

def _handle_user_consent_flow(self, request, enterprise_customer, enterprise_catalog_uuid, course_id, course_mode):
@staticmethod
def _handle_user_consent_flow(request, enterprise_customer, enterprise_catalog_uuid, course_id, course_mode):
"""
For the audit course modes (audit, honor) or for the premium
course modes (Verified, Prof Ed) where DSC is required, redirect
Expand Down

0 comments on commit 1295492

Please sign in to comment.