Fix #1697 ncenterlite panel in editor iframe

This commit is contained in:
Kijin Sung 2021-04-30 20:06:57 +09:00
parent 49dde388fe
commit e16fd61d4a

View file

@ -2,6 +2,14 @@
class ncenterliteController extends ncenterlite
{
/**
* List of acts to skip.
*/
public static $_skip_acts = array(
'dispNcenterliteNotifyList' => true,
'dispEditorFrame' => true,
);
/**
* Send any message to a member.
*
@ -1003,30 +1011,23 @@ class ncenterliteController extends ncenterlite
function triggerBeforeDisplay(&$output_display)
{
// 팝업창이면 중지
// Don't show notification panel in popups, iframes, admin dashboard, etc.
if(Context::get('ncenterlite_is_popup'))
{
return;
}
// 자신의 알림목록을 보고 있을 경우엔 알림센터창을 띄우지 않는다.
if(Context::get('act') == 'dispNcenterliteNotifyList')
{
return;
}
if(Context::isLocked())
{
return;
}
// HTML 모드가 아니면 중지 + admin 모듈이면 중지
if(isset(self::$_skip_acts[Context::get('act')]))
{
return;
}
if(Context::getResponseMethod() != 'HTML' || Context::get('module') == 'admin')
{
return;
}
// 로그인 상태가 아니면 중지
if(!Context::get('is_logged'))
{
return;