mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #4432 from guerler/fix_role_association_check
Fix private role validation
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user