Fix authentication problem in previous commit; userenv->{} should not be used before check_auth is called.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Ryan Higgins 2008-06-09 17:04:23 -05:00 committed by Joshua Ferraro
parent fc24df29d2
commit ecb8354ebe
1 changed files with 1 additions and 4 deletions

View File

@ -27,10 +27,6 @@ use C4::Calendar;
my $input = new CGI;
my $branch= $input->param('branch') || C4::Context->userenv->{'branch'};
my $dbh = C4::Context->dbh();
# Get the template to use
my ($template, $loggedinuser, $cookie)
@ -42,6 +38,7 @@ my ($template, $loggedinuser, $cookie)
debug => 1,
});
my $branch= $input->param('branch') || C4::Context->userenv->{'branch'};
# Set all the branches.
my $onlymine=(C4::Context->preference('IndependantBranches') &&
C4::Context->userenv &&