Skip to content

Commit

Permalink
fix get ldap users issue (#5776)
Browse files Browse the repository at this point in the history
  • Loading branch information
likesclever authored Nov 18, 2023
1 parent f9ca7e9 commit 1683aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seahub/api2/endpoints/admin/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_user_objs_from_ccnet(email_list):
return list(), api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, 'Internal Server Error')

sql = """SELECT e.email, is_staff, is_active, ctime, role FROM `%s`.`EmailUser` e
LEFT JOIN UserRole r ON e.emali=r.email WHERE e.email IN %%s""" % db_name
LEFT JOIN `%s`.`UserRole` r ON e.email=r.email WHERE e.email IN %%s""" % (db_name, db_name)
try:
with connection.cursor() as cursor:
cursor.execute(sql, (email_list,))
Expand Down

0 comments on commit 1683aba

Please sign in to comment.