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 <thomas.steur@googlemail.com>2014-05-29 04:45:06 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-05-29 04:45:06 +0400
commit82da315ea28b6ac1b94f3bc683bc0c8f29756fce (patch)
tree7830306d3c2c52ef8ce89af922e3d78090784fd6 /plugins/ExampleSettingsPlugin
parent62acfde14e6c514b6a5008c9f6aaa284b01db44b (diff)
refs #5212 added possibility to make a system setting readable for non super users
Diffstat (limited to 'plugins/ExampleSettingsPlugin')
-rw-r--r--plugins/ExampleSettingsPlugin/Settings.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/ExampleSettingsPlugin/Settings.php b/plugins/ExampleSettingsPlugin/Settings.php
index 2eb78b465a..40a06aebd8 100644
--- a/plugins/ExampleSettingsPlugin/Settings.php
+++ b/plugins/ExampleSettingsPlugin/Settings.php
@@ -117,6 +117,7 @@ class Settings extends \Piwik\Plugin\Settings
$this->metric->introduction = 'Only Super Users can change the following settings:';
$this->metric->description = 'Choose the metric that should be displayed in the browser tab';
$this->metric->defaultValue = 'nb_visits';
+ $this->metric->readableByCurrentUser = true;
$this->addSetting($this->metric);
}