diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:23:42 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:23:42 +0100 |
commit | 0d487d8f0bef9bf18f26097d9a3d1866b2fa5091 (patch) | |
tree | a2feb383bac0d038ee6af1be87933dd493638181 | |
parent | c179167850b6c44679deb9edd4a816243addb52d (diff) | |
download | rpg-0d487d8f0bef9bf18f26097d9a3d1866b2fa5091.tar.gz rpg-0d487d8f0bef9bf18f26097d9a3d1866b2fa5091.tar.bz2 |
no write check for users.auth.php when non-plain backend is used FS#1271
darcs-hash:20071203202342-7ad00-66a9695f554122e6ad1b78e400cb56b07ec65d19.gz
-rw-r--r-- | inc/infoutils.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index c9e553ba7..bc162d0e7 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -142,10 +142,12 @@ function check(){ msg('Lockdir is not writable',-1); } - if(is_writable(DOKU_CONF.'users.auth.php')){ - msg('conf/users.auth.php is writable',1); - }else{ - msg('conf/users.auth.php is not writable',0); + if($conf['authtype'] == 'plain'){ + if(is_writable(DOKU_CONF.'users.auth.php')){ + msg('conf/users.auth.php is writable',1); + }else{ + msg('conf/users.auth.php is not writable',0); + } } if(function_exists('mb_strpos')){ |