From b1f7bae36f230db5afe617256097a58bc4ca7ce1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Dec 2017 18:22:44 -0300 Subject: [PATCH] Bug 19817: Add new permission edit_help Change in existing behaviour! --- installer/data/mysql/atomicupdate/bug_19817.sql | 2 ++ installer/data/mysql/userpermissions.sql | 1 + koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 1 + 3 files changed, 4 insertions(+) diff --git a/installer/data/mysql/atomicupdate/bug_19817.sql b/installer/data/mysql/atomicupdate/bug_19817.sql index b2409ebbd6..fe34a7fef4 100644 --- a/installer/data/mysql/atomicupdate/bug_19817.sql +++ b/installer/data/mysql/atomicupdate/bug_19817.sql @@ -1,2 +1,4 @@ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('KohaManualBaseURL','http://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'); + +INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'edit_help', 'Edit the local manual files'); diff --git a/installer/data/mysql/userpermissions.sql b/installer/data/mysql/userpermissions.sql index 2ea387e8a5..b636a5d7c5 100644 --- a/installer/data/mysql/userpermissions.sql +++ b/installer/data/mysql/userpermissions.sql @@ -60,6 +60,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'), (13, 'upload_general_files', 'Upload any file'), (13, 'upload_manage', 'Manage uploaded files'), + (13, 'edit_help', 'Edit the local manual files'), (15, 'check_expiration', 'Check the expiration of a serial'), (15, 'claim_serials', 'Claim missing serials'), (15, 'create_subscription', 'Create a new subscription'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc index 78f4995c23..5a76251b67 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -107,6 +107,7 @@ [%- CASE 'delete_public_lists' -%]Delete public lists [%- CASE 'upload_general_files' -%]Upload any file [%- CASE 'upload_manage' -%]Manage uploaded files (Useless without upload_general_files) + [%- CASE 'edit_help' -%]Edit the local manual files [%- CASE 'edit_clubs' -%]Create and edit clubs [%- CASE 'edit_templates' -%]Create and edit club templates [%- CASE 'enroll' -%]Enroll patrons in clubs -- 2.11.0