[Koha-bugs] [Bug 977] New: Permissions settings missing from OPAC scripts?
bugzilla-daemon at wilbur.katipo.co.nz
bugzilla-daemon at wilbur.katipo.co.nz
Tue Apr 19 22:00:57 CEST 2005
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=977
Summary: Permissions settings missing from OPAC scripts?
Product: Koha
Version: 2.2.0
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P2
Component: OPAC
AssignedTo: chris at katipo.co.nz
ReportedBy: oleonard at athenscounty.lib.oh.us
QAContact: koha-bugs at lists.sourceforge.net
I noticed after updating Auth.pm (to test the new permissions features) that
several OPAC scripts were now broken, giving me this error:
Can't use string ("0") as a HASH ref while "strict refs" in use at
/usr/local/koha/intranet/modules//C4/Auth.pm line 133.
The problem didn't happen with opac-detail.pl, though, so I compared that to
opac-MARCdetail.pl (which had the problem), and noticed that missing from
opac-MARCdetail.pl was the 'flagsrequired' line from the excerpt below:
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "opac-MARCdetail.tmpl",
query => $query,
type => "opac",
authnotrequired => 1,
flagsrequired => {borrow => 1},
debug => 1,
});
When I added that line, the script worked fine. The same fixed
opac-addbookbybiblionumber.pl. Is this the right fix? Why does that cause an
error?
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Koha-bugs
mailing list