commit/galaxy-central: dannon: Prevent redefinition of role in datasets manager. Harmless now, but dangerous laterhg st
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/171ddb2fd2f8/ Changeset: 171ddb2fd2f8 User: dannon Date: 2015-01-22 21:57:45+00:00 Summary: Prevent redefinition of role in datasets manager. Harmless now, but dangerous laterhg st Affected #: 1 file diff -r 68bd633548b2cd8fa32a918a2f59d293a820baca -r 171ddb2fd2f8cdf3ef2e949f977ae01f9bff57e8 lib/galaxy/managers/datasets.py --- a/lib/galaxy/managers/datasets.py +++ b/lib/galaxy/managers/datasets.py @@ -115,7 +115,7 @@ # get a list of role ids to check access for (defaulting to all_roles) user_roles = [ role ] if role else user.all_roles() - user_role_ids = [ role.id for role in user_roles ] + user_role_ids = [ r.id for r in user_roles ] query = ( self.app.model.context.query( model.DatasetPermissions ) .filter( model.DatasetPermissions.action == access_action ) .filter( model.DatasetPermissions.dataset == dataset ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org