Bugzilla – Attachment 195239 Details for
Bug 42083
Email and SMS messages from patron record should have distinct permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 42083: Create distinct permissions
Bug-42083-Create-distinct-permissions.patch (text/plain), 3.61 KB, created by
Andrew Fuerste-Henry
on 2026-03-12 23:07:44 UTC
(
hide
)
Description:
Bug 42083: Create distinct permissions
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2026-03-12 23:07:44 UTC
Size:
3.61 KB
patch
obsolete
>From bb670ce040f99d6d0371141cc83bc73917efa793 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Date: Thu, 12 Mar 2026 20:02:07 +0000 >Subject: [PATCH] Bug 42083: Create distinct permissions > >--- > installer/data/mysql/mandatory/userpermissions.sql | 3 ++- > koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 7 +++++-- > t/Koha/Auth/Permissions.t | 3 ++- > 3 files changed, 9 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/mandatory/userpermissions.sql b/installer/data/mysql/mandatory/userpermissions.sql >index 10b8607c47d..6322c2caa4e 100644 >--- a/installer/data/mysql/mandatory/userpermissions.sql >+++ b/installer/data/mysql/mandatory/userpermissions.sql >@@ -50,7 +50,8 @@ INSERT INTO permissions (module_bit, code, description) VALUES > ( 4, 'edit_borrowers', 'Add, modify and view patron information'), > ( 4, 'list_borrowers', 'Search, list and view patrons'), > ( 4, 'merge_borrowers', 'Merge patrons'), >- ( 4, 'send_messages_to_borrowers', 'Send messages to patrons'), >+ ( 4, 'send_messages_to_borrowers_email', 'Send messages to patrons via email'), >+ ( 4, 'send_messages_to_borrowers_sms', 'Send messages to patrons via sms'), > ( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'), > ( 4, 'view_checkout_history', 'View checkout history'), > ( 4, 'view_holds_history', 'View holds history'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index 535d6da6914..3e4a841ee72 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -251,8 +251,11 @@ > [%- CASE 'api_validate_password' -%] > <span class="sub_permission api_validate_password_subpermission">Validate patron passwords using the API</span> > <span class="permissioncode">([% name | html %])</span> >- [%- CASE 'send_messages_to_borrowers' -%] >- <span class="sub_permission send_messages_to_borrowers_subpermission"> Send messages to patrons </span> >+ [%- CASE 'send_messages_to_borrowers_email' -%] >+ <span class="sub_permission send_messages_to_borrowers_email_subpermission"> Send messages to patrons via email</span> >+ <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'send_messages_to_borrowers_sms' -%] >+ <span class="sub_permission send_messages_to_borrowers_sms_subpermission"> Send messages to patrons via sms</span> > <span class="permissioncode">([% name | html %])</span> > [%- CASE 'modify_holds_priority' -%] > <span class="sub_permission modify_holds_priority_subpermission"> Modify holds priority </span> >diff --git a/t/Koha/Auth/Permissions.t b/t/Koha/Auth/Permissions.t >index 32081bc70f4..17a60f19e07 100755 >--- a/t/Koha/Auth/Permissions.t >+++ b/t/Koha/Auth/Permissions.t >@@ -125,7 +125,8 @@ subtest 'superlibrarian tests' => sub { > 'CAN_user_acquisition_reopen_closed_invoices' => 1, > 'CAN_user_acquisition_vendors_manage' => 1, > 'CAN_user_acquisition' => 1, >- 'CAN_user_borrowers_send_messages_to_borrowers' => 1, >+ 'CAN_user_borrowers_send_messages_to_borrowers_email' => 1, >+ 'CAN_user_borrowers_send_messages_to_borrowers_sms' => 1, > 'CAN_user_borrowers_delete_borrowers' => 1, > 'CAN_user_borrowers_merge_borrowers' => 1, > 'CAN_user_borrowers_edit_borrowers' => 1, >-- >2.39.5
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 42083
: 195239 |
195240
|
195241
|
195242