mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
add hasRole check for extend ad time
This commit is contained in:
parent
c9db02216e
commit
96b852d56c
@ -29,9 +29,11 @@
|
|||||||
<i class="fas fa-plus-circle"></i>
|
<i class="fas fa-plus-circle"></i>
|
||||||
{{ trans("visiosoft.theme.base::button.post_ad.name") }}
|
{{ trans("visiosoft.theme.base::button.post_ad.name") }}
|
||||||
</a>
|
</a>
|
||||||
|
{% if auth_user().hasRole('admin') %}
|
||||||
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
|
<a href="{{ url_route("advs::extendAll") }}" class="btn btn-primary">
|
||||||
{{ trans('visiosoft.module.profile::button.extend_all') }}
|
{{ trans('visiosoft.module.profile::button.extend_all') }}
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-content py-3 px-3 px-sm-0" id="nav-tabContent">
|
<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"
|
<div class="tab-pane fade{{ type == 'approved' ? ' show active' : '' }}" id="nav-approved"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user