Changeset - f3fa50c89783
[Not reviewed]
default
0 1 0
Max Roman - 11 years ago 2014-09-13 20:46:09
max@choloclos.se
Fix Admin Group Membership when using the Atlassian Crowd plugin .
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/auth_modules/auth_crowd.py
Show inline comments
 
@@ -233,12 +233,12 @@ class KallitheaAuthPlugin(auth_modules.K
 
            'active_from_extern': crowd_user.get('active'),
 
            'extern_name': crowd_user["name"],
 
            'extern_type': extern_type,
 
        }
 

	
 
        # 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)))
 
        log.info('user %s authenticated correctly' % user_attrs['username'])
 
        return user_attrs
0 comments (0 inline, 0 general)