hide New Table button for unconfirmed users

pull/26/head
Ondřej Hruška 6 years ago
parent 904e29955d
commit 0a46f48e6a
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      resources/views/profile/view.blade.php

@ -86,7 +86,7 @@
{{ $tables->links(null, ['ulClass' => 'pagination-sm mb-0 pagination-outline-light']) }}
</nav>
@if(authed() && user()->is($user))
@if(authed() && user()->is($user) && user()->confirmed)
<a href="{{route('table.create')}}" class="btn ml-3" aria-label="New Table">New</a>
@endif
</div>

Loading…
Cancel
Save