Commit cc9869aa authored by Roque's avatar Roque

erp5_officejs: fix linshare storage

See merge request !1085
parents 2be4f614 dc4b477f
...@@ -38,6 +38,14 @@ ...@@ -38,6 +38,14 @@
}); });
} }
} }
if (gadget.state_parameter_dict.jio_storage_name === "LINSHARE") {
delete gadget.state_parameter_dict.jio_storage;
return gadget.setSetting('jio_storage_name', undefined)
.push(function () {
return gadget.notifySubmitted({message: 'Unauthorized storage access',
status: 'error'});
});
}
if (site) { if (site) {
return gadget.redirect({ command: "row", url: site}); return gadget.redirect({ command: "row", url: site});
} }
...@@ -86,6 +94,7 @@ ...@@ -86,6 +94,7 @@
.declareAcquiredMethod("notifySubmitted", "notifySubmitted") .declareAcquiredMethod("notifySubmitted", "notifySubmitted")
.declareAcquiredMethod("redirect", "redirect") .declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("setSetting", "setSetting")
.declareAcquiredMethod("getSettingList", "getSettingList") .declareAcquiredMethod("getSettingList", "getSettingList")
.declareAcquiredMethod("setSettingList", "setSettingList") .declareAcquiredMethod("setSettingList", "setSettingList")
.declareAcquiredMethod('getUrlFor', 'getUrlFor') .declareAcquiredMethod('getUrlFor', 'getUrlFor')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment