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