]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/BaseRepo.php
Fixed failed permission checks due to non-loaded fields
[bookstack] / app / Entities / Repos / BaseRepo.php
index 9e1b41672128b92054b5fda8efaa93df8ed9d7cb..39b901383529effbb3b453d24a75336b24f9a666 100644 (file)
@@ -38,6 +38,7 @@ class BaseRepo
             $this->tagRepo->saveTagsToEntity($entity, $input['tags']);
         }
 
+        $entity->refresh();
         $entity->rebuildPermissions();
         $entity->indexForSearch();
     }