YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
Unexpected logout after deleting user by gmod (Read 839 times)
 Nov 23rd, 2011 at 5:05pm
There are no actions to perform.  

rx2008 
YaBB Newbie
*
Offline
Posts: 1


None
Unexpected logout after deleting user by gmod
YaBB 2.5 AE

Objectives:
Global moderator unexpected logout after deleting user.

Solution:
on /Sources/Profile.pl replace line #1537 by this:
Code (Perl)Select All
if (!$iamadmin && !$iamgmod) { 


 
 
IP Logged  
 Reply #1 - Nov 23rd, 2011 at 5:28pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Unexpected logout after deleting user by gmod
I've just tested this, and can confirm it.
 
 
IP Logged  
 Reply #2 - Nov 24th, 2011 at 12:30pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,643
Land of the Blazing Sun!


None
Re: Unexpected logout after deleting user by gmod
@ Derek -

A.  Are you only confirming the bug or are you also confirming the workaround???.

B. - is this the code supported/affected - if so, this bug may go back aways - this is 2.41 -

Code (Perl)Select All
if (!$iamadmin) {
			&UpdateCookie("delete");
			$username = 'Guest';
			$iamguest = 1;
			$iamadmin = '';
			$iamgmod = '';
			$password = '';
			$yyim = '';
			$ENV{'HTTP_COOKIE'} = '';
			$yyuname = '';
		}
		$yySetLocation = $scripturl;

	} else {
		&fatal_error('not_allowed');
	}

	&redirectexit;
}
 


Thanks
Cool

« Last Edit: Nov 24th, 2011 at 12:38pm by JonB »  
I find your lack of faith disturbing.
jonbservergeek  
IP Logged  
 Reply #3 - Nov 24th, 2011 at 1:21pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: Unexpected logout after deleting user by gmod
I was confirming the bug mainly, but the solution does fix it.

Yep. That's the code.
« Last Edit: Nov 24th, 2011 at 1:22pm by Derek Barnstorm »  
 
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.