Bugzilla – Attachment 35764 Details for
Bug 13417
New permission to allow staff to remove public lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13417: (qa follow-up) Rename the permission to delete_public_lists
Bug-13417-qa-follow-up-Rename-the-permission-to-de.patch (text/plain), 3.18 KB, created by
Jonathan Druart
on 2015-02-10 08:17:31 UTC
(
hide
)
Description:
Bug 13417: (qa follow-up) Rename the permission to delete_public_lists
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-02-10 08:17:31 UTC
Size:
3.18 KB
patch
obsolete
>From 28216009c85053e57fb285980c7fad2cf1fd256d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 5 Jan 2015 10:36:33 +0100 >Subject: [PATCH] Bug 13417: (qa follow-up) Rename the permission to > delete_public_lists > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/VirtualShelves.pm | 2 +- > installer/data/mysql/en/mandatory/userflags.sql | 2 +- > installer/data/mysql/en/mandatory/userpermissions.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 6 +++--- > 4 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm >index 8fd003a..7905b56 100644 >--- a/C4/VirtualShelves.pm >+++ b/C4/VirtualShelves.pm >@@ -466,7 +466,7 @@ sub ShelfPossibleAction { > if ( $user > 0 and $action eq 'delete_shelf' ) { > my $borrower = C4::Members::GetMember( borrowernumber => $user ); > return 1 >- if C4::Auth::haspermission( $borrower->{userid}, { shelves => 'delete_shelves' } ); >+ if C4::Auth::haspermission( $borrower->{userid}, { shelves => 'delete_public_lists' } ); > } > > my $dbh = C4::Context->dbh; >diff --git a/installer/data/mysql/en/mandatory/userflags.sql b/installer/data/mysql/en/mandatory/userflags.sql >index c027b1d..40ca2b6 100644 >--- a/installer/data/mysql/en/mandatory/userflags.sql >+++ b/installer/data/mysql/en/mandatory/userflags.sql >@@ -18,5 +18,5 @@ INSERT INTO userflags (bit, flag, flagdesc, defaulton) VALUES > (17,'staffaccess','Allow staff members to modify permissions for other staff members',0), > (18,'coursereserves','Course reserves',0), > (19, 'plugins', 'Koha plugins', '0'), >-(20, 'shelves', 'Virtual shelves', 0) >+(20, 'lists', 'Lists', 0) > ; >diff --git a/installer/data/mysql/en/mandatory/userpermissions.sql b/installer/data/mysql/en/mandatory/userpermissions.sql >index a5f574f..71993dc 100644 >--- a/installer/data/mysql/en/mandatory/userpermissions.sql >+++ b/installer/data/mysql/en/mandatory/userpermissions.sql >@@ -72,5 +72,5 @@ INSERT INTO permissions (module_bit, code, description) VALUES > (19, 'tool', 'Use tool plugins'), > (19, 'report', 'Use report plugins'), > (19, 'configure', 'Configure plugins'), >- (20, 'delete_shelves', 'Delete shelves') >+ (20, 'delete_public_lists', 'Delete public lists') > ; >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index bdb6efa..a902093 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -9763,13 +9763,13 @@ $DBversion = "3.19.00.XXX"; > if ( CheckVersion($DBversion) ) { > $dbh->do(q| > INSERT INTO userflags (bit, flag, flagdesc, defaulton) VALUES >- (20, 'shelves', 'Virtual shelves', 0) >+ (20, 'lists', 'Lists', 0) > |); > $dbh->do(q| > INSERT INTO permissions (module_bit, code, description) VALUES >- (20, 'delete_shelves', 'Delete shelves') >+ (20, 'delete_public_lists', 'Delete public lists') > |); >- print "Upgrade to $DBversion done (Bug 13417: Add permission to delete shelves)\n"; >+ print "Upgrade to $DBversion done (Bug 13417: Add permission to delete public lists)\n"; > SetVersion ($DBversion); > } > >-- >2.1.0
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 13417
:
34233
|
34249
|
34483
|
34485
|
34743
|
34744
|
34942
|
34943
|
35083
|
35084
|
35085
|
35086
|
35089
|
35762
|
35763
| 35764 |
35765
|
35766
|
37051