Bug: access oopses forget the originating web
If access is denied to a topic
the oops will be directed to the Main web. This is due to a typo in TWiki::UI::isAccessPermitted(): $webName should be $web.
Test case
- Set ALLOWTOPICCHANGE to TWikiAdminGroup on Sandbox.SomeTopic
- logout
- try to edit SandBox.SomeTopic
- you will be redirected to .../oops/Main/SomeTopic?template=oopsaccesschange
Environment
--
MichaelDaum - 29 Jun 2005
Impact and Available Solutions
Follow up
Fix record
sub isAccessPermitted {
my ( $web, $topic, $mode, $user ) = @_;
return 1 if TWiki::Access::checkAccessPermission( $mode, $user, "",
$topic, $web );
oops( $webName $web, $topic, "access$mode" );
return 0;
}
Discussion