Changeset 1951


Ignore:
Timestamp:
04/10/07 07:26:48 (13 years ago)
Author:
rub
Message:

Issue 674:

Allow administrator and webmaster ADVISER to ask a new password

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/password.php

    r1947 r1951  
    55// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 
    66// +-----------------------------------------------------------------------+ 
    7 // | branch        : BSF (Best So Far) 
    8 // | file          : $RCSfile$ 
     7// | file          : $Id$ 
    98// | last update   : $Date$ 
    109// | last modifier : $Author$ 
     
    7271WHERE ' 
    7372  .$conf['user_fields']['email'].' = \''.$mail_address.'\' AND 
    74   ui.status not in (\'guest\', \'generic\', \'admin\', \'webmaster\') 
     73  ( 
     74    ui.status = \'normal\' OR 
     75    (ui.status in (\'admin\', \'webmaster\') AND ui.adviser = \'true\') 
     76  ) 
    7577;'; 
    7678    $result = pwg_query($query); 
Note: See TracChangeset for help on using the changeset viewer.