Merge branch 'fix_discourse_usernames' into 'master'

Send usernames as string instead of array

Closes #1149

See merge request allianceauth/allianceauth!1123
This commit is contained in:
Basraah 2019-03-12 10:00:52 +00:00
commit e9ed917888

View File

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