r4 - 17 Dec 2004 - 07:20:27 - SueLockeYou are here: TWiki >  Codev Web > ChangeAccessDeniedOkButton
Tags:
, create new tag

Bug: Broken link for OK button on oopsaccesschange page

On oopsaccesschange page, OK button always refers to Main web.

Test case

Try to edit a page (not on Main web), for which you have no change access, check the OK button's url in the error message. (Link of the OK button will refer to Main.ChangeAccessDeniedOkButton).

FIX: in UI.pm, sub isAccessPermitted - $web instead of oops($webName...)

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Gentoo linux
Web server: Apache 2
Perl version: 5.8
Client OS: Windows XP SP2
Web Browser: IE6, Firefox PR1.0

-- AndrasSzell - 07 Nov 2004

Follow up

Not sure if the above is a fix; if so I would appreciate more info on a fix for the UI.pm syntax if there is where the bug lies. The sub isAccessPermitted reads:

sub isAccessPermitted {
   my ( $web, $topic, $mode, $user ) = @_;

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

   return 0;
}

Is the fix indeed to replace oops with $web? Sorry to be pedantic.

-- SueLocke - 17 Dec 2004

Fix record

This is related to / already fixed in OopsRenameAccessDeniedHasMainWeb.

-- PeterThoeny - 17 Dec 2004

Thanks Peter. Problem now solved.

-- SueLocke - 17 Dec 2004

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo