From 2d45ba0ff5e563ce783d5e902796726263c48c3c Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Fri, 19 Sep 2003 22:01:19 +0000 Subject: [PATCH] BOGO users allowed preferences too when ALLOW_BOGO_LOGIN == true. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2749 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/UserPreferences.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/plugin/UserPreferences.php b/lib/plugin/UserPreferences.php index 7ed96abb5..bc98254bd 100644 --- a/lib/plugin/UserPreferences.php +++ b/lib/plugin/UserPreferences.php @@ -1,5 +1,5 @@ isAuthenticated() and $args['userid'] == $user->_userid) { + if (((defined('ALLOW_BOGO_LOGIN') && ALLOW_BOGO_LOGIN && $user->isSignedIn()) + || $user->isAuthenticated()) + && $args['userid'] == $user->_userid) { if ($request->isPost()) { if ($request->_prefs) { $pref = $request->_prefs; @@ -136,6 +138,9 @@ extends WikiPlugin }; // $Log: not supported by cvs2svn $ +// Revision 1.10 2003/09/13 21:57:26 carstenklapp +// Reformatting only. +// // Revision 1.9 2003/09/13 21:53:41 carstenklapp // Added lang and theme arguments, getVersion(), copyright and cvs log. // -- 2.45.0