block access to the properties menu in iframes

This commit is contained in:
ansuz 2022-03-21 17:48:41 +05:30
parent 52b423e9ba
commit 1a247af0a9
1 changed files with 8 additions and 0 deletions

View File

@ -888,6 +888,14 @@ define([
.text(Messages.propertiesButton))
.click(common.prepareFeedback(type))
.click(function () {
var isTop;
try {
isTop = common.getMetadataMgr().getPrivateData().isTop;
} catch (err) { console.error(err); }
if (!isTop) {
return void UIElements.openDirectlyConfirmation(common);
}
sframeChan.event('EV_PROPERTIES_OPEN');
});
break;