Bug 15706

Summary: Templates require circulate permissions to show circ related tabs when they should only require circulate_remaining_permissions
Product: Koha Reporter: Kyle M Hall <kyle>
Component: CirculationAssignee: Aleisha Amohia <aleisha>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: aleisha, brendan, f.demians, gmcharlt, jonathan.druart, julian.maurice, kyle.m.hall, veron
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12051
Change sponsored?: Sponsored Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12051    
Bug Blocks:    
Attachments: Bug 15706: Changing to circulate_remaining_permissions
Bug 15706: Changing to circulate_remaining_permissions
Bug 15706: Changing to circulate_remaining_permissions
Bug 15706: Forgot to attach the change I made!
Bug 15706: Forgot to attach the change I made!
Bug 15706: Changing to circulate_remaining_permissions
Bug 15706: (follow-up) Changing to circulate_remaining_permissions
[3.22] Bug 15706: Changing to circulate_remaining_permissions

Description Kyle M Hall 2016-01-29 19:17:04 UTC
For instance, in cat-search.inc, the checkin box is wrapped with [% IF ( CAN_user_circulate ) %] yet a librarian with only CAN_user_circulate_circulate_remaining_permissions should be able to see the box, as checkins only require circulate_remaining_permissions.
Comment 1 Aleisha Amohia 2016-01-31 21:18:39 UTC Comment hidden (obsolete)
Comment 2 Aleisha Amohia 2016-02-01 00:42:03 UTC
Sponsored-by: Catalyst IT
Comment 3 Marc Véron 2016-02-01 07:33:41 UTC Comment hidden (obsolete)
Comment 4 Jonathan Druart 2016-02-01 12:14:05 UTC
With a patron without circulate_remaining_permissions, but another subperm of circulate, I get 2 inputs on the mainpage:

Enter patron card number or partial name:
[+]

Enter patron card number or partial name:

And 2 tabs 
    Search patrons
    Search the catalog
Comment 5 Aleisha Amohia 2016-02-01 21:34:51 UTC Comment hidden (obsolete)
Comment 6 Aleisha Amohia 2016-02-01 22:37:05 UTC Comment hidden (obsolete)
Comment 7 Kyle M Hall 2016-02-03 14:55:48 UTC Comment hidden (obsolete)
Comment 8 Jonathan Druart 2016-02-09 10:36:02 UTC
Created attachment 47786 [details] [review]
Bug 15706: Changing to circulate_remaining_permissions

I have only changed this in the includes for the tabs at the top.
Dependent on Bug 12051 as that patch adds extra tabs to the top which would need to be changed later

To test:
1) Apply Bug 12051 first, then this patch
2) Ensure that Check Out/Check In/Renew tabs still work as they should
3) Check patch for errors or pages I've missed

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 9 Jonathan Druart 2016-02-09 10:37:32 UTC
Created attachment 47787 [details] [review]
Bug 15706: (follow-up) Changing to circulate_remaining_permissions

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 10 Brendan Gallagher 2016-02-23 22:39:49 UTC
Pushed to Master - Should be in the May 2016 Release. Thanks!
Comment 11 Julian Maurice 2016-03-07 09:32:04 UTC
Created attachment 48728 [details] [review]
[3.22] Bug 15706: Changing to circulate_remaining_permissions

Patch for 3.22.x
Comment 12 Julian Maurice 2016-03-07 09:39:46 UTC
Patch pushed to 3.22.x, will be in 3.22.5
Comment 13 Frédéric Demians 2016-03-15 07:11:41 UTC
This patch doesn't apply properly on 3.20 branch. Since 17 files are affected, I can't take the risk to fix the merging issues. Can the author of the patch propose a version for 3.20?