From: Carsten K. <car...@us...> - 2003-09-19 22:01:26
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv28064 Modified Files: UserPreferences.php Log Message: BOGO users allowed preferences too when ALLOW_BOGO_LOGIN == true. Index: UserPreferences.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/UserPreferences.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -2 -b -p -d -r1.10 -r1.11 --- UserPreferences.php 13 Sep 2003 21:57:26 -0000 1.10 +++ UserPreferences.php 19 Sep 2003 22:01:19 -0000 1.11 @@ -78,5 +78,7 @@ extends WikiPlugin return Template('userprefs', $no_args); } - if ($user->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) { @@ -137,4 +139,7 @@ extends WikiPlugin // $Log$ +// Revision 1.11 2003/09/19 22:01:19 carstenklapp +// BOGO users allowed preferences too when ALLOW_BOGO_LOGIN == true. +// // Revision 1.10 2003/09/13 21:57:26 carstenklapp // Reformatting only. |