Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -169,7 +169,8 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
if ( !isset( $this->_cachedLinks[ $member->member_id ] ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
/* @note SELECT_FROM_WRITE_SERVER Added in 2e3846f8e6e50b0fc89f18ada73539e7034c5290 "Read/Write Separation issue with OAuth logins" */
|
||||
$this->_cachedLinks[ $member->member_id ] = \IPS\Db::i()->select( '*', 'core_login_links', array( 'token_login_method=? AND token_member=? AND token_linked=1', $this->id, $member->member_id ), NULL, NULL, NULL, NULL, \IPS\Db::SELECT_FROM_WRITE_SERVER )->first();
|
||||
}
|
||||
catch ( \UnderflowException $e )
|
||||
@@ -458,7 +459,11 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
* @return bool
|
||||
*/
|
||||
public function showInUcp( \IPS\Member $member = NULL )
|
||||
{
|
||||
{
|
||||
if( !$this->enabled )
|
||||
{
|
||||
return FALSE ;
|
||||
}
|
||||
if ( isset( $this->settings['show_in_ucp'] ) )
|
||||
{
|
||||
switch ( $this->settings['show_in_ucp'] )
|
||||
@@ -966,7 +971,7 @@ abstract class _Handler extends \IPS\Node\Model
|
||||
public function save()
|
||||
{
|
||||
parent::save();
|
||||
unset( \IPS\Data\Store::i()->loginMethods );
|
||||
unset( \IPS\Data\Store::i()->loginMethods, \IPS\Data\Store::i()->essentialCookieNames );
|
||||
\IPS\Data\Cache::i()->clearAll();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user