This commit is contained in:
flash 2016-03-31 22:11:56 +02:00
parent 7df1ebc6d4
commit b7cc440984

View file

@ -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;
}