Bug 6841 - A member with cataloging permissions cannot change branches (when independ...
authorLiz Rea <lrea@nekls.org>
Tue, 6 Sep 2011 18:00:51 +0000 (13:00 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Wed, 14 Sep 2011 18:04:05 +0000 (14:04 -0400)
commit340dc7b48f83cfd97a0856871d8bde49a038a07f
treeb523c6688a60fe0ac12551f629b762dd11764248
parent275e5d872784cc35da3e4aa3be03f19bb6861b31
Bug 6841 - A member with cataloging permissions cannot change branches (when independent branches is set on)

This patch does a couple of things.

1. Changes permission over all to set branch printer (change branch/Set Library) from "circulation" privileges to "view catalogue" permissions. Reasoning: anyone who has privileges to view catalogue could reasonably be expected to perhaps need to change the set branch, but you might have people who don't have circulate permissions who need to change the branch, centralized cataloguing, for example. Those people would never circ and wouldn't need circ privileges, but *would* need to be able to change the set branch.
2. Changes the template flags to see the "Set Library" link with independent branches set from "manage users" to "manage users or edit catalogue." Reasoning: even with indy branches on, there might be reasons for catalogers to be able to change the set branch (that reason was the impetus for this patch in the first place).

To test:
Create a user with only "View Catalogue" Permissions (no circulate permissions), that user should be able to change set library with Independent branches OFF.

With independent branches on, give a user edit catalogue permissions. That user should be able to change set library.

I want to add that this patch was specifically written in response to chris_n's bug report. It may not be practical for these changes to be in mainline, but I haven't thought of any reasons why it would be explicitly bad. That doesn't mean there aren't some, though.

Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit c2015c710355a0ab81306515a70af29e6aef3504)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
circ/selectbranchprinter.pl
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc