mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
log warning if user account is not active
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user