permissions, but they are now all in their own column because reasons???

This commit is contained in:
akemidx 2024-02-20 18:48:17 -05:00
parent 8bbf6da052
commit 9397372f87

View file

@ -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,