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 }}
</div>
<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>
@endif
</div>

Loading…
Cancel
Save