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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-11-29 05:48:31 +0300
committerGitHub <noreply@github.com>2018-11-29 05:48:31 +0300
commit039e62dd87fead33238ea93a2c4fbef1d91cab71 (patch)
tree631e69be10c9b4280880d7d1478a3fd3aeb5d221 /plugins/Dashboard/Controller.php
parentc60176ec1e8ad60133f0a0eada159106bc33d3cf (diff)
allow admin user to copy dashboards (#13605)
* allow admin user to copy dashboards * Update API.php * fix test
Diffstat (limited to 'plugins/Dashboard/Controller.php')
-rw-r--r--plugins/Dashboard/Controller.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Dashboard/Controller.php b/plugins/Dashboard/Controller.php
index ceddd90e07..5efef84535 100644
--- a/plugins/Dashboard/Controller.php
+++ b/plugins/Dashboard/Controller.php
@@ -39,6 +39,7 @@ class Controller extends \Piwik\Plugin\Controller
$this->setGeneralVariablesView($view);
$view->availableLayouts = $this->getAvailableLayouts();
+ $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
$view->dashboardId = Common::getRequestVar('idDashboard', 1, 'int');
@@ -57,6 +58,7 @@ class Controller extends \Piwik\Plugin\Controller
{
$view = $this->_getDashboardView('@Dashboard/index');
$view->dashboardSettingsControl = new DashboardManagerControl();
+ $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
$view->dashboards = array();
if (!Piwik::isUserIsAnonymous()) {
$login = Piwik::getCurrentUserLogin();