@@ -35,7 +35,7 @@ |
||
35 | 35 | public function impersonate() |
36 | 36 | { |
37 | 37 | /** @var AdminContext $context */ |
38 | - if (!($context = $this->getContext()) instanceof AdminContext) { |
|
38 | + if(!($context = $this->getContext()) instanceof AdminContext) { |
|
39 | 39 | throw new DirectAdminException('You need to be an admin to impersonate another admin'); |
40 | 40 | } |
41 | 41 | return $context->impersonateAdmin($this->getUsername()); |
@@ -35,7 +35,8 @@ |
||
35 | 35 | public function impersonate() |
36 | 36 | { |
37 | 37 | /** @var AdminContext $context */ |
38 | - if (!($context = $this->getContext()) instanceof AdminContext) { |
|
38 | + if (!($context = $this->getContext()) instanceof AdminContext) |
|
39 | + { |
|
39 | 40 | throw new DirectAdminException('You need to be an admin to impersonate another admin'); |
40 | 41 | } |
41 | 42 | return $context->impersonateAdmin($this->getUsername()); |