Fix private role validation

This commit is contained in:
guerler
2017-08-15 17:22:41 -04:00
parent 462b7def5d
commit 522ca9e5c2
+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 )