Bug 22343: Add parameters => manage_smtp_servers subpermission

This patch introduces a new subpermission for managing SMTP servers, for
granularity.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomás Cohen Arazi 2020-08-21 10:59:48 -03:00 committed by Jonathan Druart
parent c94e2b2e32
commit 1854d20b46
2 changed files with 7 additions and 0 deletions

View file

@ -36,6 +36,12 @@ if( CheckVersion( $DBversion ) ) {
});
}
$dbh->do(q{
INSERT IGNORE INTO permissions
(module_bit, code, description)
VALUES ( 3, 'manage_smtp_servers', 'Manage SMTP servers configuration');
});
# Always end with this (adjust the bug info)
NewVersion( $DBversion, 22343, "Add SMTP configuration options");
}

View file

@ -34,6 +34,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
( 3, 'manage_mana', 'Manage Mana KB content sharing'),
( 3, 'manage_additional_fields', 'Add, edit, or delete additional custom fields for baskets or subscriptions (also requires order_manage or edit_subscription permissions)'),
( 3, 'manage_keyboard_shortcuts', 'Manage keyboard shortcuts for the advanced cataloging editor'),
( 3, 'manage_smtp_servers', 'Manage SMTP servers configuration'),
( 4, 'edit_borrowers', 'Add, modify and view patron information'),
( 4, 'view_borrower_infos_from_any_libraries', 'View patron infos from any libraries'),
( 6, 'place_holds', 'Place holds for patrons'),