diff options
author | diosmosis <benaka@piwik.pro> | 2014-10-02 06:36:05 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-10-02 06:36:14 +0400 |
commit | c9670997ad57319109d638fd58aba58273a6596b (patch) | |
tree | e488d917e10dda119300d06eea9f1a215755a387 /core/Console.php | |
parent | 280c1ab7b5f3943ced7fa984c88d46fa228ff168 (diff) |
Refs #6342, give all commands superuser access by default (since any user that can execute a command can do more than a superuser already).
Diffstat (limited to 'core/Console.php')
-rw-r--r-- | core/Console.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Console.php b/core/Console.php index 1f418fc79a..9f1ef79a41 100644 --- a/core/Console.php +++ b/core/Console.php @@ -55,7 +55,9 @@ class Console extends Application $this->addCommandIfExists($command); } - return parent::doRun($input, $output); + return Access::doAsSuperUser(function () use ($input, $output) { + return Application::doRun($input, $output); + }); } private function addCommandIfExists($command) |