]> git.koha-community.org Git - koha.git/commit
Bug 10888: Don't hide authorities module from users who lack permission to edit autho...
authorOwen Leonard <oleonard@myacpl.org>
Fri, 13 Sep 2013 18:45:50 +0000 (14:45 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 13 Nov 2013 14:17:22 +0000 (11:17 -0300)
commit66d1d18cf9177163d8ccc02140693fc7dc57833c
treec6a2c03935224c2bbbef652f1bef8e8adf0b36b7
parent783d5baeb9a33219a1c5c4085b2fba4d7ede923b
Bug 10888: Don't hide authorities module from users who lack permission to edit authorities

It should be possible for staff client users to search and view
authority records even if they don't have permission to edit them.

To test, apply the patch and view the staff client as a user with and
without "editauthorities" permission.

With "editauthorities" permission, authority search results should show
both an edit and delete link. Viewing the details of an authority
record, one should see a toolbar with edit/delete/new options.

The detail view has been altered to use the term "record" in place of
"biblio" ("Used in X record(s)).

Without "editauthorities" permission, authority search results should
show no edit or delete link. Viewing the details of an authority, the
only option shown in the toolbar should be "Save."

On the staff client home page and in the header's "More" menu the link
to the authorities module should now appear with and without permission
to edit authorities.

This patch also corrects the permissions in the authority export script
to allow saving of authority records by users who do not have permission
to edit.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 9bd3a44944e6a0cb7920c3c53a88c11a8986b146)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
authorities/export.pl
koha-tmpl/intranet-tmpl/prog/en/includes/authorities-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt