Tags:
create new tag
view all tags

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

ALERT! 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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-05-22 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.