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-08-15 18:46:08 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-15 22:29:29 +0400
commitd0a6e2d8f19bfdfcb141b148a65e2328cb7f2da5 (patch)
tree4b8eba3f6f1b620686742129b5ea54a1f6d4af05 /plugins/ExampleSettingsPlugin
parent3d547e5210dc96aa8122ed412882ee1eeac4dbd3 (diff)
refs #5414 make those settings readable by all users
Diffstat (limited to 'plugins/ExampleSettingsPlugin')
-rw-r--r--plugins/ExampleSettingsPlugin/Settings.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ExampleSettingsPlugin/Settings.php b/plugins/ExampleSettingsPlugin/Settings.php
index d3a9ec5d3b..1853873924 100644
--- a/plugins/ExampleSettingsPlugin/Settings.php
+++ b/plugins/ExampleSettingsPlugin/Settings.php
@@ -130,6 +130,7 @@ class Settings extends \Piwik\Plugin\Settings
$this->browsers->availableValues = array('firefox' => 'Firefox', 'chromium' => 'Chromium', 'safari' => 'safari');
$this->browsers->description = 'The value will be only displayed in the following browsers';
$this->browsers->defaultValue = array('firefox', 'chromium', 'safari');
+ $this->browsers->readableByCurrentUser = true;
$this->addSetting($this->browsers);
}
@@ -137,6 +138,7 @@ class Settings extends \Piwik\Plugin\Settings
private function createDescriptionSetting()
{
$this->description = new SystemSetting('description', 'Description for value');
+ $this->description->readableByCurrentUser = true;
$this->description->uiControlType = static::CONTROL_TEXTAREA;
$this->description->description = 'This description will be displayed next to the value';
$this->description->defaultValue = "This is the value: \nAnother line";
@@ -147,6 +149,7 @@ class Settings extends \Piwik\Plugin\Settings
private function createPasswordSetting()
{
$this->password = new SystemSetting('password', 'API password');
+ $this->password->readableByCurrentUser = true;
$this->password->uiControlType = static::CONTROL_PASSWORD;
$this->password->description = 'Password for the 3rd API where we fetch the value';
$this->password->transform = function ($value) {