Skip to content

Commit

Permalink
Item13242: UnifiedUserMapping: saner "temporary admin" logic
Browse files Browse the repository at this point in the history
The previous logic, copied from ToppicUserMapping, set the user field in
the session to the super admin *group*. While, in principle, groups can
be treated as users, apparently, this is currently not accounted for in
UnifiedAuthContrib, so for now set the built-in admin account instead.
  • Loading branch information
jast committed Feb 3, 2015
1 parent deb69c9 commit 3392d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Foswiki/Users/UnifiedUserMapping.pm
Expand Up @@ -305,7 +305,7 @@ sub _getListOfGroups {

# Temporarily set the user to admin, otherwise it cannot see groups
# where %USERSWEB% is protected from view
local $this->{session}->{user} = $Foswiki::cfg{SuperAdminGroup};
local $this->{session}->{user} = 'BaseUserMapping_333';

$this->{session}->search->searchWeb(
_callback => \&_collateGroups,
Expand Down

0 comments on commit 3392d5b

Please sign in to comment.