FEATURE: hopefully last changes about permissions

This commit is contained in:
Michal Kváček
2017-08-24 02:04:20 +02:00
parent b35149ad67
commit 49bd38db50
3 changed files with 12 additions and 18 deletions
@@ -8,7 +8,7 @@
{{str_limit($template->description, 150)}}
</div>
@can('copy', $template)
@can('copy', \App\Models\Templates\Template::class)
@if($isWritable)
<a data-template-id="{{$template->id}}" data-template-name="{{$template->template_name}}"
class="btn btn-pill-left btn-secondary col-lg-6 copy-template" data-toggle="tooltip"
@@ -21,11 +21,6 @@
<i class="fa fa-copy"></i>
</a>
@endif
@else
<a href="#" class="btn btn-pill-left btn-secondary disabled col-lg-6" data-toggle="tooltip"
title="@lang('admin/templates.cannotCopy')">
<i class="fa fa-copy"></i>
</a>
@endcan
@can('update', $template)
<a href="{{route('templates.edit', ['id' => $template->id])}}"