Page Index Toggle Pages: 1
Topic Tools
Normal Topic Unexpected logout after deleting user by gmod (Read 971 times)
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Unexpected logout after deleting user by gmod
Reply #3 - Nov 24th, 2011 at 1:21pm
Post Tools
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 »  
Back to top
 
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,785
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Unexpected logout after deleting user by gmod
Reply #2 - Nov 24th, 2011 at 12:30pm
Post Tools
@ 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.
Back to top
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Unexpected logout after deleting user by gmod
Reply #1 - Nov 23rd, 2011 at 5:28pm
Post Tools
I've just tested this, and can confirm it.
  
Back to top
 
IP Logged
 
rx2008
YaBB Newcomer
*
Offline



Posts: 1
Unexpected logout after deleting user by gmod
Nov 23rd, 2011 at 5:05pm
Post Tools
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) { 


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top