]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/ChapterController.php
Page Attachments - Improved UI, Now initially complete
[bookstack] / app / Http / Controllers / ChapterController.php
index 03ec2c1109973ed3013fb0d579e65a6abfdbb558..57ca58beba9750d9ba3082b57f9202a20f1a2506 100644 (file)
@@ -117,7 +117,7 @@ class ChapterController extends Controller
         $this->checkOwnablePermission('chapter-update', $chapter);
         $chapter->fill($request->all());
         $chapter->slug = $this->chapterRepo->findSuitableSlug($chapter->name, $book->id, $chapter->id);
-        $chapter->updated_by = auth()->user()->id;
+        $chapter->updated_by = user()->id;
         $chapter->save();
         Activity::add($chapter, 'chapter_update', $book->id);
         return redirect($chapter->getUrl());