summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-12-03 21:23:42 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-12-03 21:23:42 +0100
commit0d487d8f0bef9bf18f26097d9a3d1866b2fa5091 (patch)
treea2feb383bac0d038ee6af1be87933dd493638181 /inc/infoutils.php
parentc179167850b6c44679deb9edd4a816243addb52d (diff)
downloadrpg-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
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php10
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')){