mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-06 07:06:19 +01:00
Added fix for syncgroup not working
This commit is contained in:
@@ -91,6 +91,13 @@ def create_syncgroup_for_user(user, groupname, servicename):
|
||||
synccache.save()
|
||||
|
||||
|
||||
def remove_all_syncgroups_for_service(user, servicename):
|
||||
syncgroups = SyncGroupCache.objects.filter(user=user)
|
||||
for syncgroup in syncgroups:
|
||||
if syncgroup.servicename == servicename:
|
||||
syncgroup.delete()
|
||||
|
||||
|
||||
def add_to_databases(user, groups, syncgroups):
|
||||
authserviceinfo = None
|
||||
try:
|
||||
@@ -101,7 +108,6 @@ def add_to_databases(user, groups, syncgroups):
|
||||
if authserviceinfo:
|
||||
authserviceinfo = AuthServicesInfo.objects.get(user=user)
|
||||
|
||||
update = False
|
||||
for group in groups:
|
||||
|
||||
if authserviceinfo.jabber_username and authserviceinfo.jabber_username != "":
|
||||
|
||||
Reference in New Issue
Block a user