[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-bugs] [Bug 977] New: Permissions settings missing from OPAC script
From: |
bugzilla-daemon |
Subject: |
[Koha-bugs] [Bug 977] New: Permissions settings missing from OPAC scripts? |
Date: |
19 Apr 2005 20:00:57 -0000 |
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: address@hidden
ReportedBy: address@hidden
QAContact: address@hidden
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-bugs] [Bug 977] New: Permissions settings missing from OPAC scripts?,
bugzilla-daemon <=