Reported with proposed fix by
TWiki:Main.JeremyBertenshaw in
TWiki:Support.SID-01080
Jeremy's fix is simply hard-coding the Main web name to
User
, so will not work in a default installation.
This fix is universal:
--- TagMePlugin.pm (revision 21104)
+++ TagMePlugin.pm (working copy)
@@ -35,8 +35,8 @@
$topicsRegex $action $style $label $header $footer $button
);
-$VERSION = '1.7';
-$RELEASE = '2010-06-12';
+$VERSION = '1.8';
+$RELEASE = '2011-05-25';
$pluginName = 'TagMePlugin'; # Name of this Plugin
$initialized = 0;
@@ -1446,7 +1446,7 @@
my @groupsAndUsers = split( ",", $allowModifyPrefNames );
foreach (@groupsAndUsers) {
my $name = $_;
- $name =~ s/(Main\.|\%MAINWEB\%\.)//go;
+ $name =~ s/.*\.//go; # Remove web prefix from Main.WikiName
return 1 if ( $name eq TWiki::Func::getWikiName(undef) ); # user is listed
return 1 if _isGroupMember( $name );
}
--
TWiki:Main/PeterThoeny - 2011-05-25
This is now in SVN trunk and 5.1 branch, and posted on twiki.org.
--
TWiki:Main.PeterThoeny - 2011-05-26