Bugzilla – Attachment 57664 Details for
Bug 17663
Forgotten userpermissions from bug 14686
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 17663: Forgotten userpermissions from bug 14686
SIGNED-OFF-Bug-17663-Forgotten-userpermissions-fro.patch (text/plain), 2.57 KB, created by
Katrin Fischer
on 2016-11-20 17:43:39 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 17663: Forgotten userpermissions from bug 14686
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-11-20 17:43:39 UTC
Size:
2.57 KB
patch
obsolete
>From 909da3ed0e638c2c24edc8f35d5b7bfb3f68578a Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Sun, 20 Nov 2016 16:35:53 +0100 >Subject: [PATCH] [SIGNED OFF] Bug 17663: Forgotten userpermissions from bug > 14686 > >Bug 14686 added in a dbrev: > (13, 'upload_general_files', 'Upload any file'), > (13, 'upload_manage', 'Manage uploaded files'); > >But these were not added in userpermissions.sql somehow :) >So, what now? > >This patch: >[1] adds them to userpermissions.sql as should have been done, >[2] adds a dbrev to add them for newer installs that did not run the > 14686 dbrev. > >Test plan: >[1] Run this sql statement: > DELETE FROM permissions WHERE code = 'upload_general_files' OR > code = 'upload_manage' >[2] Run the db rev. >[2] Check if you see Tools/Upload (with sufficient perms). > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > installer/data/mysql/atomicupdate/bug17663.perl | 11 +++++++++++ > installer/data/mysql/userpermissions.sql | 2 ++ > 2 files changed, 13 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug17663.perl > >diff --git a/installer/data/mysql/atomicupdate/bug17663.perl b/installer/data/mysql/atomicupdate/bug17663.perl >new file mode 100644 >index 0000000..070f180 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug17663.perl >@@ -0,0 +1,11 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(q| >+INSERT IGNORE INTO permissions (module_bit, code, description) VALUES >+ (13, 'upload_general_files', 'Upload any file'), >+ (13, 'upload_manage', 'Manage uploaded files'); >+ |); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 17663 - Forgotten userpermissions)\n"; >+} >diff --git a/installer/data/mysql/userpermissions.sql b/installer/data/mysql/userpermissions.sql >index 26b4e5c..6b72278 100644 >--- a/installer/data/mysql/userpermissions.sql >+++ b/installer/data/mysql/userpermissions.sql >@@ -57,6 +57,8 @@ 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, 'upload_general_files', 'Upload any file'), >+ (13, 'upload_manage', 'Manage uploaded files'), > (15, 'check_expiration', 'Check the expiration of a serial'), > (15, 'claim_serials', 'Claim missing serials'), > (15, 'create_subscription', 'Create a new subscription'), >-- >2.1.4
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 17663
:
57662
|
57664
|
57675
|
57676
|
57677