From b90f3d051401247a96fa81078df9a594be5a392d Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Tue, 3 Sep 2024 20:31:21 +0000 Subject: [PATCH] Bug 13342: Not logged user can place a review/comment We are able to comment a notice even when no user is connected To test 1. Log in to OPAC. 2. Find a Biblio and open the comments tab. 3. Open another tab/window, and log out from the account. 4. Return to the first tab. 5. Click "Post your comments on this title." --> We are able to post a comment 6. Apply the patch 7. Repeat step 1, 2, 3, 4, 5 --> You should be redirected to the login page. Signed-off-by: David Cook Bug 13342: Tidy Signed-off-by: David Cook Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass (cherry picked from commit 2dc9dcf87a388ad118af0326f37893d525a7cbfa) Signed-off-by: Fridolin Somers --- opac/opac-review.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opac/opac-review.pl b/opac/opac-review.pl index 12152d228e..9e586a66eb 100755 --- a/opac/opac-review.pl +++ b/opac/opac-review.pl @@ -34,10 +34,9 @@ my $review = $query->param('review'); my $reviewid = $query->param('reviewid'); my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { - template_name => "opac-review.tt", - query => $query, - type => "opac", - authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), + template_name => "opac-review.tt", + query => $query, + type => "opac", } ); -- 2.39.5