From 6494335e795899ef50a67c0f4fc79307f44a13d9 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Mon, 7 Mar 2016 18:35:03 +0100 Subject: [PATCH] incompatible with older gs, and unnecessary --- actions/apiqvittersandboxcreate.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/actions/apiqvittersandboxcreate.php b/actions/apiqvittersandboxcreate.php index f713e61..b4a81e7 100644 --- a/actions/apiqvittersandboxcreate.php +++ b/actions/apiqvittersandboxcreate.php @@ -86,10 +86,6 @@ class ApiQvitterSandboxCreateAction extends ApiAuthAction if (!$this->scoped->hasRight(Right::SANDBOXUSER)) { $this->clientError(_('You cannot sandbox users on this site.'), 403); } - // Only administrators can sandbox other privileged users (such as others who have the right to sandbox). - if ($this->scoped->isPrivileged() && !$this->scoped->hasRole(Profile_role::ADMINISTRATOR)) { - $this->clientError(_('You cannot sandbox other privileged users.'), 403); - } // only sandbox of the user isn't sandboxed if (!$this->other->isSandboxed()) {