X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsandbox.php;h=af2eab3842d268add1d5a8c0693464a81fb91871;hb=2addf8e456f96c60de4edabf2409c4ec49013aab;hp=ddbca40b2de6992dac0b86e65a300ddf6adf05f1;hpb=c1a27922ba738f71b100a520e5db6f32985a307b;p=quix0rs-gnu-social.git diff --git a/actions/sandbox.php b/actions/sandbox.php index ddbca40b2d..af2eab3842 100644 --- a/actions/sandbox.php +++ b/actions/sandbox.php @@ -62,7 +62,6 @@ class SandboxAction extends ProfileFormAction if (!$cur->hasRight(Right::SANDBOXUSER)) { // TRANS: Client error displayed trying to sandbox users on a site where the feature is not enabled. $this->clientError(_('You cannot sandbox users on this site.')); - return false; } assert(!empty($this->profile)); // checked by parent @@ -70,7 +69,6 @@ class SandboxAction extends ProfileFormAction if ($this->profile->isSandboxed()) { // TRANS: Client error displayed trying to sandbox an already sandboxed user. $this->clientError(_('User is already sandboxed.')); - return false; } return true;