Bug 18214: Cannot edit list permissions of a private list
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 6 Mar 2017 08:44:48 +0000 (09:44 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 5 Jul 2017 16:35:20 +0000 (13:35 -0300)
commit3d2eddaf3da3e090d00b4e5823f8f70a70c06ea1
treef5adbead6bf0d7c64a373f85331d6cea66c4ae96
parent905572910b3af03d86fdbd3e52c72614f41c978b
Bug 18214: Cannot edit list permissions of a private list

If you have disabled the pref OpacAllowPublicListCreation, your users are
not able to edit the list permissions for private/shared lists.
For a private list they may only be theoretically relevant, but for a shared
list they are relevant.
Since we do not always know the history of a list (has it been public or
shared, does it contains entries from other users) and therefore permissions
are even relevant for a currently private list, we should just allow editing
these permissions.

Test plan:
[1] Do not yet apply this patch.
[2] Disable OpacAllowPublicListCreation.
[3] Create a private list in OPAC. Edit the list. Verify that you do not
    see the permission combo boxes.
[4] Apply this patch. Edit the list again. Do they appear now?

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Works as advertised.
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt