[Koha-bugs] [Bug 18834] Show "Anyone seeing this list" permission only for shared and public lists

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 22 16:32:10 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18834

Lee Jamison <ldjamison at marywood.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #64521|0                           |1
        is obsolete|                            |

--- Comment #14 from Lee Jamison <ldjamison at marywood.edu> ---
Created attachment 64545
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64545&action=edit
Bug 18834: Show "Anyone seeing this list" permission only for shared and public
lists

This is a follow-up of report 18228 that simplifies the permissions for
lists. It reapplies the idea of bug 10865, but with one difference: It does
not completely hide all permissions if adding public or shared lists is not
allowed; it only hides the Anyone-permission if it is not relevant.

Note: The Anyone permission is not relevant if it is a private list that
has no shares. Note that looking at the prefs OpacAllowPublicListCreation
and/or OpacAllowSharingPrivateLists is not decisive. You should look at
list permissions and shares in the database; turning off the Sharing pref
does not automatically remove all shares in the system. It only blocks
creating new shares.

We only need changes in opac-shelves.tt and virtualshelves/shelves.tt.

Test plan:
[1] Disable OpacAllowPublicListCreation and OpacAllowSharingPrivateLists.
[2] Edit a public list in staff view. Toggle permissions, save and reopen
    to check the value you saved. Is Anyone permission included?
[3] Edit a private list (without shares) in staff. Is Anyone excluded?
[4] Edit the same private list in OPAC. Is Anyone excluded too?
[5] Enable OpacAllowPublicListCreation. Create a public list in OPAC.
[6] Edit this list in OPAC. Do you see Anyone? Save with Anyone.
[7] Change category to Private. Save and reopen. Is Owner selected now,
    and Anyone excluded?
[8] Enable sharing. Share a list and accept it with another user.
    [You can also manually insert a record in virtualshelfshares.]
    Edit the list in OPAC as owner. Do you see Anyone?

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

Signed-off-by: Lee Jamison <ldjamison at marywood.edu>
Works as directed in the test plan. updatedatabase.pl must be
run in order for Datatables_Virtualshelves.t to pass

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list