Skip to content

Commit

Permalink
change update profile API to bypass updation using client id and secr…
Browse files Browse the repository at this point in the history
…et key
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Apr 17, 2024
1 parent b676d3c commit 33b7707
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openedx/core/djangoapps/user_api/accounts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ def update_account_settings(requesting_user, update, username=None):
# Get user
if username is None:
username = requesting_user.username
if requesting_user.username != username:
raise errors.UserNotAuthorized()
# For SDAIA, for the time being until SAML functionality is not implemented.
# if requesting_user.username != username:
# raise errors.UserNotAuthorized()
user, user_profile = _get_user_and_profile(username)

# Validate fields to update
Expand Down

0 comments on commit 33b7707

Please sign in to comment.