writableByCurrentUser = Piwik::isUserHasSomeAdminAccess(); $this->readableByCurrentUser = Piwik::isUserHasSomeViewAccess(); } /** * Returns `true` if this setting is writable for the current user, `false` if otherwise. In case it returns * writable for the current user it will be visible in the Plugin settings UI. * * @return bool */ public function isWritableByCurrentUser() { return $this->writableByCurrentUser; } /** * Returns `true` if this setting can be displayed for the current user, `false` if otherwise. * * @return bool */ public function isReadableByCurrentUser() { return $this->readableByCurrentUser; } }