BUG Fixing a user with acquisition rights and no superlibrarian rights couldn't creat...
authorhdl <hdl>
Mon, 8 Aug 2005 13:58:07 +0000 (13:58 +0000)
committerhdl <hdl>
Mon, 8 Aug 2005 13:58:07 +0000 (13:58 +0000)
acqui/basket.pl

index c5135fa..0e9b533 100755 (executable)
@@ -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;