summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.lib.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-09 10:53:13 -0400
committerjim-p <jimp@pfsense.org>2012-10-09 10:53:13 -0400
commit5ff00e737cb5409e7a7d3352408f6ec97d9baa84 (patch)
treea6efdd1290bea5187e5e445daff5a44d78493d2a /etc/inc/config.lib.inc
parentbec92ab9e2421c32be92c1c4bde7a93997628de0 (diff)
downloadpfsense-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.inc2
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;
OpenPOWER on IntegriCloud