sorrie
This commit is contained in:
parent
7df1ebc6d4
commit
b7cc440984
1 changed files with 1 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
||||||
namespace Sakura;
|
namespace Sakura;
|
||||||
|
|
||||||
use Sakura\Perms\Site;
|
use Sakura\Perms\Site;
|
||||||
use Sakura\Router;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User management
|
* User management
|
||||||
|
@ -153,13 +152,11 @@ class Users
|
||||||
// Create output array
|
// Create output array
|
||||||
$fields = [];
|
$fields = [];
|
||||||
|
|
||||||
$user = User::construct(self::checkLogin()[0]);
|
|
||||||
|
|
||||||
// Iterate over the fields and clean them up
|
// Iterate over the fields and clean them up
|
||||||
foreach ($optionFields as $field) {
|
foreach ($optionFields as $field) {
|
||||||
$field = get_object_vars($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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue