Question
We have a "locked web".
ALLOWEBVIEW is set to a particular group.
I want to make the WebHome page viewable by everyone. That page has a notice that says "This is a private web'.
I tried setting DENYTOPICVIEW to empty as described in
TWiki.TWikiAccessControl. However, when I do that, if I attempt to access the page before loggin in, I see
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Undefined subroutine &TWiki::Contrib::EditContrib::Include41::isTrue called
We are running TWiki version TWiki-4.1.2.
I've filed a bug report (Item5334). In the meantime, is there a workround anyone can suggest?
Environment
--
VickiBrown - 06 Feb 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Just a guess: Did you make your WebLeftBar topic accessible to everyone as well? If not, then do this - it is even more than a workaround, it is the right thing to do
But of course it is a bug: From a glimpse at the code, it tries to call an unqualified isTrue (in both
Include40.pm and
Include41.pm) several times, one of them is if you do not have permission to view an included topic. If you replace
isTrue by
TWiki::isTrue in
lib/TWiki/Contrib/EditContrib/Include41.pm then you should get the correct error message stating that you have no permission to view WebLeftBar.
--
HaraldJoerg - 07 Feb 2008
Harald - you're absolutely right. I never thought about WebLeftBar. I also edited the <nop?EditContrib code, though that's less necessary now.
Thank you. Problem resolved.
--
VickiBrown - 11 Feb 2008