Question
CheckListPlugin does
eval { require TWiki::AccessControlException; };
if ($@) {
TWiki::Func::redirectCgiQuery(TWiki::Func::getCgiQuery(),TWiki::Func::getOopsUrl($web,$topic,"oopsaccesschange"));
} else {
require Error;
'CHANGE',
$TWiki::Plugins::SESSION->{user},
$topic, $web, 'denied'
);
This doesn't seem conformant, but I don't know what to change it to.
--
MeredithLesly - 18 May 2006
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.
That code example doesn't look very sensible. Did you miss something?
Assuming it is trying to throw an
AccessControlException in the
else, just change it so it calls redirectCgiQuery in all cases. I imagine it only uses
AccessControlException to leverage the existing code in TWiki.
--
CrawfordCurrie - 22 May 2006