changeset 4515:f3fa50c89783

Fix Admin Group Membership when using the Atlassian Crowd plugin .
author Max Roman <max@choloclos.se>
date Sat, 13 Sep 2014 18:46:09 +0000
parents 155f281be5f8
children b3f12c354e87
files kallithea/lib/auth_modules/auth_crowd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/auth_modules/auth_crowd.py	Mon Sep 08 13:38:56 2014 +0200
+++ b/kallithea/lib/auth_modules/auth_crowd.py	Sat Sep 13 18:46:09 2014 +0000
@@ -236,7 +236,7 @@
         }
 
         # set an admin if we're in admin_groups of crowd
-        for group in settings["admin_groups"]:
+        for group in settings["admin_groups"].split(","):
             if group in user_attrs["groups"]:
                 user_attrs["admin"] = True
         log.debug("Final crowd user object: \n%s" % (formatted_json(user_attrs)))