Piwik\Settings\Plugin\SystemSetting::isWritableByCurrentUser PHP Метод

isWritableByCurrentUser() публичный Метод

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.
public isWritableByCurrentUser ( ) : boolean
Результат boolean
    public function isWritableByCurrentUser()
    {
        if ($this->hasConfigValue()) {
            return false;
        }
        if (isset($this->hasWritePermission)) {
            return $this->hasWritePermission;
        }
        // performance improvement, do not detect this in __construct otherwise likely rather "big" query to DB.
        $this->hasWritePermission = Piwik::hasUserSuperUserAccess();
        return $this->hasWritePermission;
    }