From 96b852d56cc0e569c492875f81384d93bf58ceb2 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Fri, 11 Sep 2020 16:59:54 +0300 Subject: [PATCH] add hasRole check for extend ad time --- .../profile-module/resources/views/profile/ads.twig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig index 3e5124d15..36c1d0483 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig @@ -29,9 +29,11 @@ {{ trans("visiosoft.theme.base::button.post_ad.name") }} - - {{ trans('visiosoft.module.profile::button.extend_all') }} - + {% if auth_user().hasRole('admin') %} + + {{ trans('visiosoft.module.profile::button.extend_all') }} + + {% endif %}