Skip to content

Commit

Permalink
Merge branch 'cp7.1.0.219' into cp7.2.0.209
Browse files Browse the repository at this point in the history
  • Loading branch information
wginolas committed Sep 6, 2023
2 parents bf72fd9 + 4b09e5e commit 0c450b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/api/documents/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,10 @@
isSafari_mobile = !isIE && !isChrome && check(/safari/) && (navigator.maxTouchPoints>0),
path_type;

//XXX CryptPad do not use mobile page for iOS Safari. The mobile page does not load require.js.
// We need require() in docscoapi.js
isSafari_mobile = false;

path += app + "/";
path_type = (config.type === "mobile" || isSafari_mobile)
? "mobile" : (config.type === "embedded")
Expand Down
3 changes: 3 additions & 0 deletions apps/documenteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ define([
if (data.doc) {
appHeader.setDocumentCaption(data.doc.title);
}

// XXX CryptPad: disable protect feature
this.permissions.protect = false;
},

onProcessSaveResult: function(data) {
Expand Down
3 changes: 3 additions & 0 deletions apps/spreadsheeteditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ define([
this.api.asc_registerCallback('asc_onRunAutostartMacroses', _.bind(this.onRunAutostartMacroses, this));
this.api.asc_setDocInfo(docInfo);
this.api.asc_getEditorPermissions(this.editorConfig.licenseUrl, this.editorConfig.customerId);

// XXX CryptPad: disable protect feature
this.permissions.protect = false;
},

onProcessSaveResult: function(data) {
Expand Down

0 comments on commit 0c450b4

Please sign in to comment.