From b7cc440984d74767498eb89259b0804677775dba Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 31 Mar 2016 22:11:56 +0200 Subject: [PATCH] sorrie --- libraries/Users.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/Users.php b/libraries/Users.php index 33fc362..975d714 100644 --- a/libraries/Users.php +++ b/libraries/Users.php @@ -8,7 +8,6 @@ namespace Sakura; use Sakura\Perms\Site; -use Sakura\Router; /** * User management @@ -153,13 +152,11 @@ class Users // Create output array $fields = []; - $user = User::construct(self::checkLogin()[0]); - // Iterate over the fields and clean them up foreach ($optionFields as $field) { $field = get_object_vars($field); - if (!$user->permission(constant('Sakura\Perms\Site::' . $field['option_permission']))) { + if (!ActiveUser::$user->permission(constant('Sakura\Perms\Site::' . $field['option_permission']))) { continue; }