X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fadminpanelaction.php;h=a7cb9fc72277d96fabd5d5f802d3775e006591d6;hb=f134a423f6a9e7bb61d069c4d6281c05417bbd45;hp=4868e9d492de116af2ba5b785f1185d7af17ca3c;hpb=8b47400183052873b012dacf4eb5ba841914a886;p=quix0rs-gnu-social.git diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index 4868e9d492..a7cb9fc722 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -69,7 +69,6 @@ class AdminPanelAction extends Action if (!common_logged_in()) { // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); - return false; } $user = common_current_user(); @@ -94,7 +93,6 @@ class AdminPanelAction extends Action if (!$user->hasRight(Right::CONFIGURESITE)) { // TRANS: Client error message thrown when a user tries to change admin settings but has no access rights. $this->clientError(_('You cannot make changes to this site.')); - return false; } // This panel must be enabled @@ -106,7 +104,6 @@ class AdminPanelAction extends Action if (!self::canAdmin($name)) { // TRANS: Client error message throw when a certain panel's settings cannot be changed. $this->clientError(_('Changes to that panel are not allowed.'), 403); - return false; } return true; @@ -220,7 +217,6 @@ class AdminPanelAction extends Action { // TRANS: Client error message. $this->clientError(_('showForm() not implemented.')); - return; } /** @@ -248,10 +244,9 @@ class AdminPanelAction extends Action { // TRANS: Client error message $this->clientError(_('saveSettings() not implemented.')); - return; } - function canAdmin($name) + static function canAdmin($name) { $isOK = false;