mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
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:
parent
01cc3d8d98
commit
a991ac35eb
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue