Issue 674:

Allow administrator and webmaster ADVISER to ask a new password


git-svn-id: http://piwigo.org/svn/trunk@1951 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2007-04-10 05:26:48 +00:00
parent 01cc3d8d98
commit a991ac35eb

View file

@ -4,8 +4,7 @@
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
// | file : $RCSfile$
// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
@ -71,7 +70,10 @@ FROM '.USERS_TABLE.' as u
ON u.'.$conf['user_fields']['id'].' = ui.user_id
WHERE '
.$conf['user_fields']['email'].' = \''.$mail_address.'\' AND
ui.status not in (\'guest\', \'generic\', \'admin\', \'webmaster\')
(
ui.status = \'normal\' OR
(ui.status in (\'admin\', \'webmaster\') AND ui.adviser = \'true\')
)
;';
$result = pwg_query($query);