commit/galaxy-central: natefoo: Handle spaces between commas in admin_users
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/3dd591f01f6a/ changeset: 3dd591f01f6a user: natefoo date: 2012-05-30 10:31:56 summary: Handle spaces between commas in admin_users affected #: 1 file diff -r 37a28d5134b37b8450d9c266e1a5a6bb261461bf -r 3dd591f01f6aae374142a62c25db98bacae5c4e3 lib/galaxy/web/framework/__init__.py --- a/lib/galaxy/web/framework/__init__.py +++ b/lib/galaxy/web/framework/__init__.py @@ -657,7 +657,7 @@ def user_is_admin( self ): if self.api_inherit_admin: return True - admin_users = self.app.config.get( "admin_users", "" ).split( "," ) + admin_users = [ x.strip() for x in self.app.config.get( "admin_users", "" ).split( "," ) ] return self.user and admin_users and self.user.email in admin_users def user_can_do_run_as( self ): run_as_users = self.app.config.get( "api_allow_run_as", "" ).split( "," ) 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)
-
Bitbucket