Bug 18214: Add check for shared or public list
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 22 Jun 2017 06:55:16 +0000 (08:55 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sat, 15 Jul 2017 17:51:34 +0000 (19:51 +0200)
commitbb179998b47d4d6f3b5674cdfc96508276b341ad
tree412f20ed05a7c1aab4356d569aa5ea97c019d2b4
parentcedae4535ba4b91826b4476d109070c847fad160
Bug 18214: Add check for shared or public list

Following the idea behind bug 10865, we are only showing the permissions
when the list is shared or public.
Adding a simple test in opac-shelves here.

Note 1: Since the owner can always add or delete entries, the permissions
will not be relevant anymore for a strictly private list.

Note 2: Staff view always shows the permissions. This could have been
changed here too, but that change is far less urgent (bug 10865 did not
touch staff view and bug 18228 will rearrange permissions anyway).

Test plan:
[1] Verify on OPAC that you see the permissions for a private list with
    shares or a public list. And you do not see them for a private list
    without shares.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit b494837c8d17a29936e2c2bcc067120c26876855)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f4b6e5963ff3511d54f1af1f66d1fb7c1e2cfb4a)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt