Merge pull request #4432 from guerler/fix_role_association_check

Fix private role validation
This commit is contained in:
Dannon Baker
2017-08-16 09:27:50 -04:00
committed by GitHub
+1 -1
View File
@@ -1391,7 +1391,7 @@ class GalaxyRBACAgent( RBACAgent ):
self.sa_session.refresh( user )
for role in roles:
# Make sure we are not creating an additional association with a PRIVATE role
if role not in user.roles:
if role not in [ x.role for x in user.roles ]:
self.associate_components( user=user, role=role )
for group in groups:
self.associate_components( user=user, group=group )