Ticket 28 - UIDs with capital letters

This commit is contained in:
mike cullerton 2024-05-24 15:54:18 -04:00
parent 7301b81d5c
commit 4a918c9b4a
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ class StudyService(object):
if uid is None: if uid is None:
raise ApiError('uid not specified', "This function requires a uva uid parameter") raise ApiError('uid not specified', "This function requires a uva uid parameter")
uid = uid.lower()
if not LdapService.user_exists(uid): if not LdapService.user_exists(uid):
raise ApiError('trying_to_grant_access_to_user_not_found_in_ldap', "You are trying to grant access to " raise ApiError('trying_to_grant_access_to_user_not_found_in_ldap', "You are trying to grant access to "
"%s but they were not found in ldap " "%s but they were not found in ldap "