Bug 11911: (follow-up) Hide suggestion box on acq start page if no permission
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 28 May 2018 21:56:51 +0000 (23:56 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 23 Jul 2018 15:34:21 +0000 (15:34 +0000)
When the user is not superlibrarian or has the manage_suggestions
permission, the suggestion box on the left of the acq start page
needs to be hidden.

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt

index d7ef803..32a1332 100644 (file)
@@ -49,7 +49,7 @@
 </div>
 </div>
 
-[% IF ( suggestion && suggestions_count ) %]
+[% IF ( CAN_user_acquisition_suggestions_manage && suggestion && suggestions_count ) %]
 <div class="col-sm-6">
     <div id="acqui_acqui_home_suggestions">
         <fieldset>