From 9d362a2400bb1d36b1dec8df5316fca75ea05c08 Mon Sep 17 00:00:00 2001 From: Marius van den Beek Date: Sat, 19 Mar 2016 15:30:48 +0100 Subject: [PATCH] log warning if user account is not active --- lib/galaxy/webapps/galaxy/api/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/webapps/galaxy/api/tools.py b/lib/galaxy/webapps/galaxy/api/tools.py index dfa2febb1e8..5c0cc13fdf1 100644 --- a/lib/galaxy/webapps/galaxy/api/tools.py +++ b/lib/galaxy/webapps/galaxy/api/tools.py @@ -222,6 +222,8 @@ class ToolsController( BaseAPIController, UsesVisualizationMixin ): tool = trans.app.toolbox.get_tool( payload[ 'tool_id' ] , tool_version ) if 'tool_id' in payload else None if not tool or not tool.allow_user_access( trans.user ): raise exceptions.MessageException( 'Tool not found or not accessible.' ) + if trans.app.config.user_activation_on and not trans.user.active: + log.warning("User \"%s\" attempts to execute job, but account is not active" % trans.user.email ) # Set running history from payload parameters. # History not set correctly as part of this API call for