mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 06:20:16 +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
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
class IPBoardManager:
|
class IPBoardManager:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -72,6 +73,7 @@ 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)
|
||||||
|
if type(ret) is list:
|
||||||
for group in ret:
|
for group in ret:
|
||||||
groups.append(group["g_title"])
|
groups.append(group["g_title"])
|
||||||
return groups
|
return groups
|
||||||
|
Loading…
x
Reference in New Issue
Block a user