mirror of https://github.com/xwiki-labs/cryptpad
block access to the properties menu in iframes
This commit is contained in:
parent
52b423e9ba
commit
1a247af0a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue