mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 14:00:17 +02:00
Hopeful ipboard fix
This commit is contained in:
parent
744d3489f5
commit
b93ddb0e37
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user