mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 22:49:41 -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.', ';
|
$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
|
// Add a new row with data
|
||||||
$values = [
|
$values = [
|
||||||
|
@ -603,7 +603,7 @@ class UsersController extends Controller
|
||||||
$user->accessories->count(),
|
$user->accessories->count(),
|
||||||
$user->consumables->count(),
|
$user->consumables->count(),
|
||||||
$user_groups,
|
$user_groups,
|
||||||
$userperm ? $user->permissions : '',
|
$user->permissions ? $userperm : '',
|
||||||
//$user->permissions, // ? $user->permissions->where('permissions', 'LIKE', '%"1"%') : '',
|
//$user->permissions, // ? $user->permissions->where('permissions', 'LIKE', '%"1"%') : '',
|
||||||
//where json like '%"category":"Category Example"%
|
//where json like '%"category":"Category Example"%
|
||||||
$user->notes,
|
$user->notes,
|
||||||
|
|
Loading…
Reference in a new issue