From 522ca9e5c2ebbf274af26b466c1bab5fb5bc5625 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 15 Aug 2017 17:22:41 -0400 Subject: [PATCH] Fix private role validation --- lib/galaxy/security/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/security/__init__.py b/lib/galaxy/security/__init__.py index 3fb9838ca2a..13e8663216e 100644 --- a/lib/galaxy/security/__init__.py +++ b/lib/galaxy/security/__init__.py @@ -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 )