@@ -, +, @@ permission - Moves the .pl and .tt under tools/ instead of reports/ and adds tools/access_files permission. - Remove datatables-strings.inc from .tt - Allow sorting on date column in file access tool. For some reason, the table was blocking sorting based on timestamp, even though most users would probably want that since the feature is used primarily to access generated (daily) reports i and finding the last ones is very important. -1) Having done requirements of previous patches, like adding 'accessdir' to koha-conf... --- .../bz11317-add-permission-for-tools-access-file.sql | 1 + installer/data/mysql/userpermissions.sql | 1 + koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 1 + .../{reports/report_files.tt => tools/access_files.tt} | 9 ++++----- koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt | 4 +++- reports/report_files.pl => tools/access_files.pl | 11 ++++++----- 6 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql rename koha-tmpl/intranet-tmpl/prog/en/modules/{reports/report_files.tt => tools/access_files.tt} (82%) rename reports/report_files.pl => tools/access_files.pl (93%) --- a/installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql +++ a/installer/data/mysql/atomicupdate/bz11317-add-permission-for-tools-access-file.sql @@ -0,0 +1, @@ +INSERT INTO permissions (module_bit, code, description) VALUES (13, 'access_files', 'Access to the files stored on the server'); --- a/installer/data/mysql/userpermissions.sql +++ a/installer/data/mysql/userpermissions.sql @@ -59,6 +59,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES (13, 'records_batchmod', 'Perform batch modification of records (biblios or authorities)'), (13, 'marc_modification_templates', 'Manage marc modification templates'), (13, 'records_batchdel', 'Perform batch deletion of records (bibliographic or authority)'), + (13, 'access_files', 'Access to the files stored on the server'), (13, 'upload_general_files', 'Upload any file'), (13, 'upload_manage', 'Manage uploaded files'), (15, 'check_expiration', 'Check the expiration of a serial'), --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ a/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 'access_files' -%]Access to the files stored on the server [%- CASE 'edit_clubs' -%]Create and edit clubs [%- CASE 'edit_templates' -%]Create and edit club templates [%- CASE 'enroll' -%]Enroll patrons in clubs --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/report_files.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/report_files.tt @@ -3,14 +3,13 @@ [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'datatables.inc' %] -[% INCLUDE 'datatables-strings.inc' %]