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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sat, 15 Jul 2017 17:50:38 +0000 (19:50 +0200)
commitcedae4535ba4b91826b4476d109070c847fad160
tree3cdb228cc404e5b6ffa15bfcb82dc1ff32b4ad9d
parentf5da355d4f2fc4435d1581afa0cbb462e9f389f0
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>
(cherry picked from commit 306055cd81a8f61cd25025f89bdb5e8d90a33caf)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt