diff --git a/CHANGELOG.md b/CHANGELOG.md index 4507b83ca..3538023e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project starting with the 0.6.0 release will be docu ### Fixed - Fixed unidentified index email warning which appeared when logging in via saved machine token by email. (#983) - Prevented long loop of configurator loadings. (#988) +- Fixed auth status check before running `CommandWithSSH` descendant commands (`drush`, `wp`). (#986) ## [0.10.6] - 2016-03-07 ### Changed diff --git a/php/Terminus/Commands/CommandWithSSH.php b/php/Terminus/Commands/CommandWithSSH.php index 00dbb563b..aeade8d49 100755 --- a/php/Terminus/Commands/CommandWithSSH.php +++ b/php/Terminus/Commands/CommandWithSSH.php @@ -26,6 +26,17 @@ abstract class CommandWithSSH extends TerminusCommand { */ protected $unavailable_commands = array(); + /** + * Object constructor + * + * @param array $options Options to construct the command object + * @return CommandWithSSH + */ + public function __construct(array $options = []) { + $options['require_login'] = true; + parent::__construct($options); + } + /** * Checks to see if the command is not available in Terminus and, if not, * it will refer you to an equivalent Terminus command, if such exists.