Tags:
create new tag
view all tags

Bug: Oops Message for Rename Access Denied has Always Main Web

Incorrect web is shown in oops message if a user tries to rename a topic with no permissions

This is a small refactor bug.

Test case

  • User without permission tries to rename a topic in any web other then Main web
  • Opps message is shown with Main web instead of current web
  • Link to Email generates 'Main.TopicName' subject instead of 'Actualweb.TopicName'

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: N/A
Server OS: N/A
Web server: N/A
Perl version: N/A
Client OS: N/A
Web Browser: N/A

-- PeterThoeny - 08 Oct 2004

Follow up

Fix record

--- bu3/UI.pm   2004-09-18 22:37:14.000000000 -0700
+++ UI.pm       2004-10-08 13:40:03.000000000 -0700
@@ -140,11 +140,11 @@
 sub isAccessPermitted {
    my ( $web, $topic, $mode, $user ) = @_;

    return 1 if TWiki::Access::checkAccessPermission( $mode, $user, "",
                                                      $topic, $web );
-   oops( $webName, $topic, "access$mode" );
+   oops( $web, $topic, "access$mode" );

    return 0;
 }

 =pod twiki

-- PeterThoeny - 08 Oct 2004

This is now in SVN

-- PeterThoeny - 09 Oct 2004

Moved CodingStandardsDiscussions to where they belong

-- PeterThoeny - 12 Oct 2004

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2005-02-13 - SamHasler
 
  • 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.