Bug 18214: Cannot edit list permissions of a private list
commit306055cd81a8f61cd25025f89bdb5e8d90a33caf
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 6 Mar 2017 08:44:48 +0000 (6 09:44 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 10 Jul 2017 09:51:26 +0000 (10 11:51 +0200)
tree35caedc45dce16520894d0265caa345748625f18
parentbb14ce9d657f2a30621a0a6465809cef1f820f3c
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.

(cherry picked from commit 3d2eddaf3da3e090d00b4e5823f8f70a70c06ea1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt