Skip to content

Commit

Permalink
Item12952: always admin when bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Aug 27, 2014
1 parent fc572d2 commit 2595a90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/lib/Foswiki/Users.pm
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,16 @@ sub setEmails {
True if the user is an admin
* is $Foswiki::cfg{SuperAdminGroup}
* is a member of the $Foswiki::cfg{SuperAdminGroup}
* Foswiki is bootstrapping a new configuration
=cut

sub isAdmin {
my ( $this, $cUID ) = @_;

# If bootstrapping the configuration, always admin
return 1 if $Foswiki::cfg{isBOOTSTRAPPING};

return 0 unless defined $cUID;

return $this->{isAdmin}->{$cUID}
Expand Down

0 comments on commit 2595a90

Please sign in to comment.