From 8d1de066e7134b0170a6cf1bceee4c5320499581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 16 Aug 2018 21:44:04 +0200 Subject: [PATCH] fix error if not logged in --- resources/views/table/revisions.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/table/revisions.blade.php b/resources/views/table/revisions.blade.php index 148770f..3c6e016 100644 --- a/resources/views/table/revisions.blade.php +++ b/resources/views/table/revisions.blade.php @@ -61,7 +61,7 @@ {{ $revision->note }}
- @if(!$isCurrent && user()->ownsTable($table)) + @if(!$isCurrent && authed() && user()->ownsTable($table)) Set as current @endif