1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Fixed bug causing editing notification to always show

Updated tests to prevent happening again
This commit is contained in:
Dan Brown
2016-03-13 14:33:43 +00:00
parent a06321675a
commit 4656c12f6d
2 changed files with 8 additions and 1 deletions

View File

@ -498,6 +498,7 @@ class PageRepo extends EntityRepo
private function activePageEditingQuery(Page $page, $minRange = null)
{
$query = $this->pageRevision->where('type', '=', 'update_draft')
->where('page_id', '=', $page->id)
->where('updated_at', '>', $page->updated_at)
->where('created_by', '!=', auth()->user()->id)
->with('createdBy');