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

--- Comment #4 from Aleisha Amohia <aleishaamo...@hotmail.com> ---
Created attachment 60228
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=60228&action=edit
Bug 10679: Hide delete option for lists if user does not have permission

The reason the delete button was still showing is because, by default,
we allow anyone to remove THEIR OWN contributions from a list. So, the
delete button will always show. This patch makes sure that the delete
button will only show if permission for anyone else to add or delete
their own entries is granted.

To test:
1) Make a public list setting all permissions to 'do not allow' EXCEPT
'remove own contributed entries' (set this to Allow). This should be
done by default, but just make sure
2) Log in as a different user and go to that list. notice the 'remove
selected' button shows, but attempting to delete any records fails.
3) Apply patch and refresh the page
4) Notice that the delete button is now gone.
5) Log back in as the list owner and set the first two permissions to
'Allow' (add entries, remove their own contributed entries)
6) Log back in as a different user and go to the list. The delete button
should now be showing and work as expected.

Sponsored-by: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to