Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-10-02 06:36:05 +0400
committerdiosmosis <benaka@piwik.pro>2014-10-02 06:36:14 +0400
commitc9670997ad57319109d638fd58aba58273a6596b (patch)
treee488d917e10dda119300d06eea9f1a215755a387 /core/Console.php
parent280c1ab7b5f3943ced7fa984c88d46fa228ff168 (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.php4
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)