]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PermissionsUpdater.php
Improve sorting Shelf Books
[bookstack] / app / Entities / Tools / PermissionsUpdater.php
index bbf0cba962f4560c6c42efc3061d1bdec2f84a3c..8a27ce75b6f2722aace9c279dda670267db03804 100644 (file)
@@ -28,7 +28,7 @@ class PermissionsUpdater
         }
 
         if (!is_null($ownerId)) {
-            $this->updateOwnerFromId($entity, $ownerId);
+            $this->updateOwnerFromId($entity, intval($ownerId));
         }
 
         $entity->save();