diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 69b9fd0ddf..6fced9b263 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -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,