fix error if not logged in

master
Ondřej Hruška 6 years ago
parent cff01551de
commit 8d1de066e7
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      resources/views/table/revisions.blade.php

@ -61,7 +61,7 @@
{{ $revision->note }} {{ $revision->note }}
</div> </div>
<div class="col-md-2 text-right"> <div class="col-md-2 text-right">
@if(!$isCurrent && user()->ownsTable($table)) @if(!$isCurrent && authed() && user()->ownsTable($table))
<a href="{{$table->actionRoute('revert-to', ['rev' => $num])}}" class="btn btn-outline-secondary btn-sm">Set as current</a> <a href="{{$table->actionRoute('revert-to', ['rev' => $num])}}" class="btn btn-outline-secondary btn-sm">Set as current</a>
@endif @endif
</div> </div>

Loading…
Cancel
Save