mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -08:00
permissions, but they are now all in their own column because reasons???
This commit is contained in:
parent
8bbf6da052
commit
9397372f87
|
@ -584,7 +584,7 @@ class UsersController extends Controller
|
|||
$user_groups .= $user_group->name.', ';
|
||||
}
|
||||
|
||||
$userperm = User::where('permissions','LIKE','%admin%');
|
||||
$userperm = User::where('permissions','LIKE','%admin%')->pluck('permissions');
|
||||
|
||||
// Add a new row with data
|
||||
$values = [
|
||||
|
@ -603,7 +603,7 @@ class UsersController extends Controller
|
|||
$user->accessories->count(),
|
||||
$user->consumables->count(),
|
||||
$user_groups,
|
||||
$userperm ? $user->permissions : '',
|
||||
$user->permissions ? $userperm : '',
|
||||
//$user->permissions, // ? $user->permissions->where('permissions', 'LIKE', '%"1"%') : '',
|
||||
//where json like '%"category":"Category Example"%
|
||||
$user->notes,
|
||||
|
|
Loading…
Reference in a new issue