https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39379 Roman Dolny <roman.dolny@jezuici.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #181469|0 |1 is obsolete| | --- Comment #4 from Roman Dolny <roman.dolny@jezuici.pl> --- Created attachment 181554 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181554&action=edit Bug 39379: Only display Edit patron button if enough permissions This patch adds a check for the current user permissions in order to display the 'Edit' button on the patron search screen. To test: 1. Have a patron with staff access and only `list_borrowers` permission (I picked Henry Acevedo, henry - Acevedo123) 2. Login as that user 3. Perform a patron search at http://kohadev-intra.localhost/cgi-bin/koha/members/members-home.pl => FAIL: There's an 'Edit' button 4. Click on the 'Edit' button => SUCCESS: You are told you don't have enough permissions 5. Apply this patch 6. Repeat 3 => SUCCESS: The button is not displayed 7. Login with a superlibrarian user 8. Repeat 3 => SUCCESS: You can see the button 9. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> -- You are receiving this mail because: You are watching all bug changes.