From a991ac35ebbc6e3ec0419cba78de82c41df19014 Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 10 Apr 2007 05:26:48 +0000 Subject: 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 --- password.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'password.php') diff --git a/password.php b/password.php index 42715e864..1ff5dfab6 100644 --- a/password.php +++ b/password.php @@ -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); -- cgit v1.2.3