Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -331,7 +331,7 @@ class oAuthServerAuthorizationRequest
|
||||
public function prompt( $requestedPromptType, $loggedIn )
|
||||
{
|
||||
/* If we're banned or validating, we'll show those screens instead */
|
||||
if ( \IPS\Member::loggedIn()->isBanned() )
|
||||
if ( \IPS\Member::loggedIn()->member_id and \IPS\Member::loggedIn()->isBanned() )
|
||||
{
|
||||
\IPS\Output::i()->showBanned();
|
||||
exit;
|
||||
@@ -443,9 +443,10 @@ class oAuthServerAuthorizationRequest
|
||||
\IPS\Output::i()->bodyClasses[] = 'ipsLayout_minimalNoHome';
|
||||
\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack( 'oauth_authorize', FALSE, array( 'sprintf' => array( \IPS\Settings::i()->board_name ) ) );
|
||||
\IPS\Output::i()->httpHeaders['X-Frame-Options'] = 'DENY';
|
||||
\IPS\Output::i()->pageCaching = FALSE;
|
||||
|
||||
/* Check we are not banned */
|
||||
if ( \IPS\Request::i()->ipAddressIsBanned() or \IPS\Member::loggedIn()->isBanned() )
|
||||
if ( \IPS\Request::i()->ipAddressIsBanned() or ( \IPS\Member::loggedIn()->member_id and \IPS\Member::loggedIn()->isBanned() ) )
|
||||
{
|
||||
\IPS\Output::i()->showBanned();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user