@@ -2,11 +2,7 @@ |
||
2 | 2 | namespace UserPermissions\Controller\Component; |
3 | 3 | |
4 | 4 | use Cake\Controller\Component; |
5 | -use Cake\Controller\ComponentRegistry; |
|
6 | -use Cake\Controller\Component\FlashComponent; |
|
7 | -use Cake\Datasource\ConnectionManager; |
|
8 | 5 | use Cake\Log\Log; |
9 | -use Cake\ORM\TableRegistry; |
|
10 | 6 | use UserPermissions\Exception\MissingHandlerException; |
11 | 7 | |
12 | 8 | class UserPermissionsComponent extends Component { |
@@ -222,8 +222,7 @@ |
||
222 | 222 | |
223 | 223 | if(method_exists($this->controller, "redirect")) { |
224 | 224 | $this->controller->redirect($this->redirect); |
225 | - } |
|
226 | - else { |
|
225 | + } else { |
|
227 | 226 | header("Location: " . $this->redirect); |
228 | 227 | exit; |
229 | 228 | } |