mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-04 06:06:19 +01:00
Hopeful ipboard fix
This commit is contained in:
@@ -4,6 +4,7 @@ from hashlib import md5
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class IPBoardManager:
|
||||
|
||||
def __init__(self):
|
||||
@@ -72,8 +73,9 @@ class IPBoardManager:
|
||||
def get_user_groups(username):
|
||||
groups = []
|
||||
ret = IPBoardManager.exec_xmlrpc('getUserGroups', username=username)
|
||||
for group in ret:
|
||||
groups.append(group["g_title"])
|
||||
if type(ret) is list:
|
||||
for group in ret:
|
||||
groups.append(group["g_title"])
|
||||
return groups
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user