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