* [bug#51302,done,0.4h] add zanode-create to iframeList.
This commit is contained in:
@@ -1246,7 +1246,7 @@ eof;
|
||||
*/
|
||||
$module = $this->app->getModuleName();
|
||||
$whitelist = is_string($whitelist) ? $whitelist : '|index|tutorial|install|upgrade|sso|cron|misc|user-login|user-deny|user-logout|user-reset|user-forgetpassword|user-resetpassword|my-changepassword|my-preference|file-read|file-download|file-preview|file-uploadimages|file-ajaxwopifiles|report-annualdata|misc-captcha|execution-printkanban|traincourse-ajaxuploadlargefile|traincourse-playvideo|screen-view|zanode-create|screen-ajaxgetchart|ai-chat|integration-wopi|';
|
||||
$iframeList = '|cron-index|';
|
||||
$iframeList = '|cron-index|zanode-create|';
|
||||
|
||||
if(strpos($iframeList, "|{$module}-{$method}|") === false && (strpos($whitelist, "|{$module}|") !== false || strpos($whitelist, "|{$module}-{$method}|") !== false)) return true;
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
const moduleMethod = `${currentModule}-${currentMethod}`;
|
||||
|
||||
const selfOpenList = new Set('index|tutorial|install|upgrade|sso|cron|misc|user-login|user-deny|user-logout|user-reset|user-forgetpassword|user-resetpassword|my-changepassword|my-preference|file-read|file-download|file-preview|file-uploadimages|file-ajaxwopifiles|report-annualdata|misc-captcha|execution-printkanban|traincourse-ajaxuploadlargefile|traincourse-playvideo|screen-view|zanode-create|screen-ajaxgetchart|ai-chat'.split('|'));
|
||||
const iframeList = new Set(['cron-index']);
|
||||
const iframeList = new Set(['cron-index', 'zanode-create']);
|
||||
const isAllowSelfOpen = !iframeList.has(moduleMethod) &&
|
||||
(isIndexPage
|
||||
|| location.hash === '#_single'
|
||||
|
||||
Reference in New Issue
Block a user