From 0d487d8f0bef9bf18f26097d9a3d1866b2fa5091 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 3 Dec 2007 21:23:42 +0100 Subject: no write check for users.auth.php when non-plain backend is used FS#1271 darcs-hash:20071203202342-7ad00-66a9695f554122e6ad1b78e400cb56b07ec65d19.gz --- inc/infoutils.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'inc/infoutils.php') 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')){ -- cgit v1.2.3