BUG Fixing a user with acquisition rights and no superlibrarian rights couldn't create a new basket with IndependantBranches management on.
This commit is contained in:
parent
a5b0a37a8a
commit
3d78e15b31
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue