Ensure admin has full access

tags/0.1.3
Daniel Berteaud 12 years ago
parent d1af59c9e4
commit a5ef4ec61a
  1. 4
      root/etc/e-smith/templates/etc/phpMyAdmin/sso.inc.php/10All

@ -12,7 +12,9 @@ foreach my $u ($a->users,$a->get('admin')){
my $pass = $u->prop('SqlPassword') || ''; my $pass = $u->prop('SqlPassword') || '';
# Members of the admins group automatically have # Members of the admins group automatically have
# full privileges on MySQL # full privileges on MySQL
if (($a->is_user_in_group($user,'admins')) || ($a->is_user_in_group($user,'mysqladmins'))){ if (($a->is_user_in_group($user,'admins')) ||
($a->is_user_in_group($user,'mysqladmins')) ||
($user eq 'admin')){
$login = 'sqladmin'; $login = 'sqladmin';
$pass = $admpass; $pass = $admpass;
} }

Loading…
Cancel
Save