Ejemplo n.º 1
0
 protected function init()
 {
     $this->title = Piwik::translate('CoreAdminHome_UpdateSettings');
     $isWritable = Piwik::hasUserSuperUserAccess() && CoreAdminController::isGeneralSettingsAdminEnabled();
     $this->releaseChannel = $this->createReleaseChannel();
     $this->releaseChannel->setIsWritableByCurrentUser($isWritable);
     $isWritable = $isWritable && PluginUpdateCommunication::canBeEnabled();
     $this->sendPluginUpdateEmail = $this->createSendPluginUpdateEmail();
     $this->sendPluginUpdateEmail->setIsWritableByCurrentUser($isWritable);
 }