From a5ef4ec61a4ad717fc7a9e6a3da9395a723fe745 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 5 Nov 2012 10:27:14 +0100 Subject: [PATCH] Ensure admin has full access --- root/etc/e-smith/templates/etc/phpMyAdmin/sso.inc.php/10All | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/etc/phpMyAdmin/sso.inc.php/10All b/root/etc/e-smith/templates/etc/phpMyAdmin/sso.inc.php/10All index cf0a363..39bd42c 100644 --- a/root/etc/e-smith/templates/etc/phpMyAdmin/sso.inc.php/10All +++ b/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') || ''; # Members of the admins group automatically have # 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'; $pass = $admpass; }