diff options
author | jim-p <jimp@pfsense.org> | 2012-10-09 10:53:13 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-10-09 10:53:13 -0400 |
commit | 5ff00e737cb5409e7a7d3352408f6ec97d9baa84 (patch) | |
tree | a6efdd1290bea5187e5e445daff5a44d78493d2a /etc/inc/config.lib.inc | |
parent | bec92ab9e2421c32be92c1c4bde7a93997628de0 (diff) | |
download | pfsense-5ff00e737cb5409e7a7d3352408f6ec97d9baa84.zip pfsense-5ff00e737cb5409e7a7d3352408f6ec97d9baa84.tar.gz |
Make sure admin can always write the config
Diffstat (limited to 'etc/inc/config.lib.inc')
-rw-r--r-- | etc/inc/config.lib.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc index ddefde0..bcc26f5 100644 --- a/etc/inc/config.lib.inc +++ b/etc/inc/config.lib.inc @@ -494,7 +494,7 @@ function write_config($desc="Unknown", $backup = true) { log_error("WARNING! Configuration written on bootup. This can cause stray openvpn and load balancing items in config.xml"); */ - if (!empty($_SESSION['Username'])) { + if (!empty($_SESSION['Username']) && ($_SESSION['Username'] != "admin")) { $user = getUserEntry($_SESSION['Username']); if (is_array($user) && userHasPrivilege($user, "user-config-readonly")) return false; |