mirror of
https://github.com/nikdoof/test-auth.git
synced 2026-01-31 08:28:15 +00:00
Fix the SSO Jabber group handling to actually work, and reduce uneeded calls to the XMLRPC api
This commit is contained in:
@@ -89,7 +89,9 @@ def update_service_groups(user_id):
|
||||
for service in ServiceAccount.objects.filter(user=user_id, active=True).select_related('service__api'):
|
||||
api = service.service.api_class
|
||||
try:
|
||||
print "Updating %s" % service
|
||||
api.update_groups(service.service_uid, service.user.groups.all(), service.character)
|
||||
print "Done"
|
||||
except:
|
||||
print "Error updating %s %s" % (service.service, service.service_uid)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user