From 3d78e15b315a205bd39bbf85a28d423a2cdc11cf Mon Sep 17 00:00:00 2001 From: hdl Date: Mon, 8 Aug 2005 13:58:07 +0000 Subject: [PATCH] BUG Fixing a user with acquisition rights and no superlibrarian rights couldn't create a new basket with IndependantBranches management on. --- acqui/basket.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index c5135fad81..0e9b533608 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -60,10 +60,11 @@ my ($count2,@booksellers)=bookseller($booksellerid); if (C4::Context->preference("IndependantBranches")) { my $userenv = C4::Context->userenv; unless ($userenv->{flags} == 1){ - my $validtest = ($basket->{creationdate} = "") + my $validtest = ($basket->{creationdate} eq '') + || ($basket->{branch} eq '') || ($userenv->{branch} eq $basket->{branch}) - || ($userenv->{branch} = '') - || ($basket->{branch} = ''); + || ($userenv->{branch} eq '') + || ($basket->{branch} eq ''); unless ($validtest) { print $query->redirect("../mainpage.pl"); exit 1; -- 2.39.5