Bugzilla – Attachment 161068 Details for
Bug 30230
Search for patrons in checkout should not require edit_borrowers permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30230: (follow-up) Add list permission on home-search include and update atomic update file
Bug-30230-follow-up-Add-list-permission-on-home-se.patch (text/plain), 2.21 KB, created by
Thibaud Guillot (thibaud_g)
on 2024-01-16 16:03:49 UTC
(
hide
)
Description:
Bug 30230: (follow-up) Add list permission on home-search include and update atomic update file
Filename:
MIME Type:
Creator:
Thibaud Guillot (thibaud_g)
Created:
2024-01-16 16:03:49 UTC
Size:
2.21 KB
patch
obsolete
>From 6c53f81153754c29d0b652069aeb1614512dbefc Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Tue, 16 Jan 2024 17:01:58 +0100 >Subject: [PATCH] Bug 30230: (follow-up) Add list permission on home-search > include and update atomic update file > >--- > .../bug_30230_add-new-list-borrowers-permission.pl | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_30230_add-new-list-borrowers-permission.pl b/installer/data/mysql/atomicupdate/bug_30230_add-new-list-borrowers-permission.pl >index 88772b4886..e03bf2135f 100755 >--- a/installer/data/mysql/atomicupdate/bug_30230_add-new-list-borrowers-permission.pl >+++ b/installer/data/mysql/atomicupdate/bug_30230_add-new-list-borrowers-permission.pl >@@ -1,14 +1,14 @@ > use Modern::Perl; > > return { >- bug_number => "BUG_30230", >+ bug_number => "30230", > description => "Add new list_borrowers permission", > up => sub { > my ($args) = @_; > my ( $dbh, $out ) = @$args{qw(dbh out)}; > > $dbh->do( >- "INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (4, 'list_borrowers', 'Search and list patrons')" >+ "INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (4, 'list_borrowers', 'Search, list and view patrons')" > ); > > say $out "Added new permission 'list_borrowers'"; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc >index f1041101b7..0a5ec44c8b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc >@@ -4,7 +4,7 @@ > [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] > [% circ_active_tab = 1 %] > [% circ_active = "active" %] >- [% ELSIF ( CAN_user_borrowers_edit_borrowers ) %] >+ [% ELSIF ( CAN_user_borrowers_edit_borrowers ) || ( CAN_user_borrowers_list_borrowers ) %] > [% patrons_active_tab = 1 %] > [% patrons_active = "active" %] > [% ELSIF ( CAN_user_catalogue ) %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30230
:
159409
|
159412
|
159427
|
159517
|
159559
|
159613
|
159633
|
159654
|
159667
|
159668
|
159933
|
159988
|
159989
|
159990
|
159991
|
159992
|
161068
|
161240
|
161241
|
161242
|
161243
|
161245
|
161246
|
161250
|
161251