Send usernames as string instead of array

Fixes https://gitlab.com/allianceauth/allianceauth/issues/1149
This commit is contained in:
Stephen Shirley 2019-02-09 11:10:34 +01:00
parent 7dec4deb70
commit 1b192a184f

View File

@ -235,7 +235,7 @@ class DiscourseManager:
@staticmethod @staticmethod
def __add_user_to_group(g_id, username): def __add_user_to_group(g_id, username):
endpoint = ENDPOINTS['groups']['add_user'] endpoint = ENDPOINTS['groups']['add_user']
DiscourseManager.__exc(endpoint, g_id, usernames=[username]) DiscourseManager.__exc(endpoint, g_id, usernames=username)
@staticmethod @staticmethod
def __remove_user_from_group(g_id, username): def __remove_user_from_group(g_id, username):