Merge pull request #662 from openclassify/vedatakdgn

add hasRole check for extend ad time
This commit is contained in:
Ozcan Durak 2020-09-11 17:05:18 +03:00 committed by GitHub
commit d5efe6d842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,11 @@
<i class="fas fa-plus-circle"></i>
{{ trans("visiosoft.theme.base::button.post_ad.name") }}
</a>
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
{{ trans('visiosoft.module.profile::button.extend_all') }}
</a>
{% if auth_user().hasRole('admin') %}
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
{{ trans('visiosoft.module.profile::button.extend_all') }}
</a>
{% endif %}
</div>
<div class="tab-content py-3 px-3 px-sm-0" id="nav-tabContent">
<div class="tab-pane fade{{ type == 'approved' ? ' show active' : '' }}" id="nav-approved"