From e2de21a943afabc1e9025266d8f1b95df4e57160 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 10 Mar 2014 14:55:46 +0100 Subject: [PATCH] Bug 11866: (follow-up) ensure that empty toolbar is not displayed If a user does not have course_reserve permission, a an empty toolbar is displayed. Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- .../prog/en/modules/course_reserves/course-details.tt | 2 ++ .../prog/en/modules/course_reserves/course-reserves.tt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index ea58136b56..2bc8fb351d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -45,6 +45,7 @@
+ [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
    [% IF CAN_user_coursereserves_add_reserves %]
  • Add reserves
  • [% END %] @@ -52,6 +53,7 @@ [% IF ( CAN_user_coursereserves_manage_courses ) %]
  • Delete course
  • [% END %]
+ [% END %]
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt index 820c1a2bcb..7813dca54c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt @@ -30,7 +30,7 @@ $(document).ready(function() {
    - + [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
      [% IF ( CAN_user_coursereserves_manage_courses ) %] @@ -38,6 +38,7 @@ $(document).ready(function() { [% END %]
    + [% END %]