[Koha-patches] [PATCH] Bug 5916 : (MT #2685) don't show authority edition menu
Chris Cormack
chrisc at catalyst.net.nz
Mon Mar 21 04:33:48 CET 2011
From: Nahuel ANGELINETTI <nahuel.angelinetti at biblibre.com>
this patch add a check of rights to show the authority edition menu, if the user have no rights of authority edition, we hide the menu.
---
.../prog/en/includes/authorities-toolbar.inc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
index 425519e..3e0c527 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
@@ -18,7 +18,7 @@
<!-- TMPL_LOOP name="authtypesloop" -->{ text: "<!-- TMPL_VAR name="authtypetext" -->", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=<!-- TMPL_VAR name="value" -->"},
<!-- /TMPL_LOOP -->
]
-
+ <!-- TMPL_IF NAME="CAN_user_editauthorities" -->
new YAHOO.widget.Button({
type: "menu",
label: _("New Authority"),
@@ -36,6 +36,7 @@
container: "delAuthc",
onclick: {fn: confirm_deletion }
});
+ <!-- /TMPL_IF -->
}
//]]>
--
1.7.1
More information about the Koha-patches
mailing list