Item13789: Backport CLI fix for 1.1.x, AllowLoginName blocks admin CLI access.
Priority: Normal
Current State: Closed
Released In: 1.1.10
Target Release: patch
When
AllowLoginName
is enabled calling Foswiki from the commandline is not done as
admin
/
AdminUser
--- Release01x01/core/lib/Foswiki/Engine/CLI.pm 2013-10-28 10:04:25.912913938 +0100
+++ foswiki/lib/Foswiki/Engine/CLI.pm 2014-05-23 08:52:00.000000000 +0200
@@ -77,7 +77,12 @@
delete $this->{user};
}
else {
- $req->remoteUser( $Foswiki::cfg{AdminUserWikiName} );
+ if ( $Foswiki::cfg{Register}{AllowLoginName} ) {
+ $req->remoteUser( $Foswiki::cfg{AdminUserLogin} );
+ }
+ else {
+ $req->remoteUser( $Foswiki::cfg{AdminUserWikiName} );
+ }
}
}
--
MichaelDaum - 05 Oct 2015