diff --git a/plugins/ExampleSettingsPlugin/Settings.php b/plugins/ExampleSettingsPlugin/Settings.php index d3a9ec5d3b3d66e858f179605e88ff707369d666..1853873924cc07b0f2433b6c4527c48d5f6dd62c 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) {