From d0a6e2d8f19bfdfcb141b148a65e2328cb7f2da5 Mon Sep 17 00:00:00 2001 From: Thomas Steur <thomas.steur@googlemail.com> Date: Fri, 15 Aug 2014 16:46:08 +0200 Subject: [PATCH] refs #5414 make those settings readable by all users --- plugins/ExampleSettingsPlugin/Settings.php | 3 +++ 1 file changed, 3 insertions(+) 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) { -- GitLab