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