commit/galaxy-central: dannon: Remove redundant run_as_users check.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/abcc67f37be7/ Changeset: abcc67f37be7 User: dannon Date: 2014-01-07 20:25:11 Summary: Remove redundant run_as_users check. Affected #: 1 file diff -r 7e11c0d36c85a0e916534ef6733c35fbf5046c41 -r abcc67f37be7f9450749fa87f6588e90964a6681 lib/galaxy/web/framework/__init__.py --- a/lib/galaxy/web/framework/__init__.py +++ b/lib/galaxy/web/framework/__init__.py @@ -950,7 +950,7 @@ run_as_users = [ user for user in self.app.config.get( "api_allow_run_as", "" ).split( "," ) if user ] if not run_as_users: return False - user_in_run_as_users = self.user and run_as_users and self.user.email in run_as_users + user_in_run_as_users = self.user and self.user.email in run_as_users # Can do if explicitly in list or master_api_key supplied. can_do_run_as = user_in_run_as_users or self.api_inherit_admin return can_do_run_as 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