From cd54689f20f169997a0b2a541ea690341717fcd6 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 6 Aug 2013 00:01:44 -0500 Subject: [PATCH] Slight simplification of logic related to implementation of tool.requires_login. --- lib/galaxy/tools/filters/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/galaxy/tools/filters/__init__.py b/lib/galaxy/tools/filters/__init__.py index 11b62334784..13bf9dc6435 100644 --- a/lib/galaxy/tools/filters/__init__.py +++ b/lib/galaxy/tools/filters/__init__.py @@ -12,7 +12,7 @@ class FilterFactory( object ): # Prepopulate dict containing filters that are always checked, # other filters that get checked depending on context (e.g. coming from # trackster or no user found are added in build filters). - self.default_filters = dict( tool=[ _not_hidden ], section=[], label=[] ) + self.default_filters = dict( tool=[ _not_hidden, _handle_requires_login ], section=[], label=[] ) # Add dynamic filters to these default filters. config = toolbox.app.config self.__init_filters( "tool", config.tool_filters ) @@ -25,8 +25,6 @@ class FilterFactory( object ): """ filters = self.default_filters.copy() - filters[ "tool" ].append( _handle_requires_login ) - if kwds.get( "trackster", False ): filters[ "tool" ].append( _has_trackster_conf )