block access to the properties menu in iframes

pull/1/head
ansuz 3 years ago
parent 52b423e9ba
commit 1a247af0a9

@ -888,6 +888,14 @@ define([
.text(Messages.propertiesButton)) .text(Messages.propertiesButton))
.click(common.prepareFeedback(type)) .click(common.prepareFeedback(type))
.click(function () { .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'); sframeChan.event('EV_PROPERTIES_OPEN');
}); });
break; break;

Loading…
Cancel
Save