Bugzilla – Attachment 193671 Details for
Bug 39372
No way to restrict OPAC users from creating private lists specifically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39372: Database changes
Bug-39372-Database-changes.patch (text/plain), 2.68 KB, created by
David Cook
on 2026-02-24 01:46:45 UTC
(
hide
)
Description:
Bug 39372: Database changes
Filename:
MIME Type:
Creator:
David Cook
Created:
2026-02-24 01:46:45 UTC
Size:
2.68 KB
patch
obsolete
>From 3547e781e31584c3cfa3f333f5a1c5899e8acb89 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 20 Mar 2025 05:56:48 +0000 >Subject: [PATCH] Bug 39372: Database changes > >--- > .../data/mysql/atomicupdate/bug_39372.pl | 20 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > 2 files changed, 21 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_39372.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_39372.pl b/installer/data/mysql/atomicupdate/bug_39372.pl >new file mode 100755 >index 00000000000..9934c8a88a7 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_39372.pl >@@ -0,0 +1,20 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_success say_info); >+ >+return { >+ bug_number => "39372", >+ description => "Add system preference OpacAllowPrivateListCreation", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) >+ VALUES ('OpacAllowPrivateListCreation','1',NULL,'Allow OPAC users to create private lists','YesNo'); >+ } >+ ); >+ >+ say_success( $out, "Added new system preference 'OpacAllowPrivateListCreation'" ); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 585d7a5d8d8..3349cc65a1d 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -486,6 +486,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'), > ('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'), > ('OPACAllowHoldDateInFuture','0',NULL,'If set, along with the AllowHoldDateInFuture system preference, OPAC users can set the date of a hold to be in the future.','YesNo'), >+('OpacAllowPrivateListCreation','1',NULL,'If set, allow OPAC users to create private lists','YesNo'), > ('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'), > ('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'), > ('OPACAllowUserToChangeBranch','','Pending, In-Transit, Suspended','Allow users to change the library to pick up a hold for these statuses:','multiple'), >-- >2.39.5
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 39372
:
179497
|
179498
|
179566
|
181333
|
181334
|
181336
|
181337
|
181338
|
181339
|
193670
| 193671 |
193672
|
193673