]> BookStack Code Mirror - bookstack/blobdiff - app/Users/Controllers/UserSearchController.php
Framework: Addressed deprecations
[bookstack] / app / Users / Controllers / UserSearchController.php
index 1c7786f58961f78a5b9dd2133d4783e700491135..b6f37bce08b1f3daea32e13a3ba45b634a50f34f 100644 (file)
@@ -14,7 +14,7 @@ class UserSearchController extends Controller
      */
     public function forSelect(Request $request)
     {
-        $hasPermission = signedInUser() && (
+        $hasPermission = !user()->isGuest() && (
             userCan('users-manage')
                 || userCan('restrictions-manage-own')
                 || userCan('restrictions-manage-all')