phpScheduleIt
May 18, 2013, 11:28:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Admin.php resetting password This is only accessible to adm  (Read 3950 times)
hauserjo
Guest
« on: June 27, 2006, 06:53:10 PM »

Hi,

Just noticed this one on the demo as well.  When I am logged in as the admin, and try to reset a users password I am presented with "This is only accessible to the administrator".  Could not quite figure out fix for this one. Cheers..
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: June 28, 2006, 09:58:24 AM »

Hmm, I thought this issue was fixed also.  I'll have to go back and check on this.  Thanks.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #2 on: July 08, 2006, 09:22:57 AM »

Here is the fix.  This will be included in the next release or a patch.  Change lines 423-440 in lib/Admin.class.php to:

Code:
function reset_password() {
$user = new User($_GET['memberid']); // User object
if (Auth::isAdmin() || $this->user->is_group_admin($user->get_groupids())) {
print_reset_password($user);
}
else {
print_not_allowed();
}
}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!