]> BookStack Code Mirror - bookstack/commitdiff
Added manual type conversion to fix failing tests
authorDan Brown <redacted>
Fri, 1 Jan 2021 18:38:54 +0000 (18:38 +0000)
committerDan Brown <redacted>
Fri, 1 Jan 2021 18:38:54 +0000 (18:38 +0000)
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();