]> git.koha-community.org Git - koha.git/commit
Bug 18403: Patron reviews
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 Apr 2017 17:37:47 +0000 (14:37 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Feb 2018 18:41:41 +0000 (15:41 -0300)
commite484b543f796df481edfb5e00920fb30c162fe80
treeb9fa454a9933ff67ecb7d3adea9bfa546d82e01a
parentfb2550de6e2c47ad83b63a196f50cbe1e0e16b43
Bug 18403: Patron reviews

This patch adds a new method Koha::Reviews->search_limited to return the
reviews
a logged in user is allowed to see depending his permissions.

Test plan:
Create some reviews at the OPAC and make sure a staff user is limited
(or not) to approve
or decline it.
The number of reviews displayed on the mainpage should be correct as
well.

Signed-off-by: Signed-off-by: Jon McGowan <jon.mcgowan@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Reviews.pm
mainpage.pl
reviews/reviewswaiting.pl
t/db_dependent/Koha/Reviews.t
tools/tools-home.pl