diff options
author | siavash119 <siavash119@noreply.github.com> | 2019-02-20 13:25:15 +0300 |
---|---|---|
committer | siavash119 <siavash119@noreply.github.com> | 2019-02-20 13:25:15 +0300 |
commit | f1192b0b19f1c32dea8cdf9fb954e1ec8203117b (patch) | |
tree | 6d289646bb6f51846ab3a0922735b589807c94f2 /js/documents.js | |
parent | b093c6f02493b80bed2e5d1b4eceacc64dd43b67 (diff) |
allow nextcloud in an iframe
Diffstat (limited to 'js/documents.js')
-rw-r--r-- | js/documents.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/documents.js b/js/documents.js index 8e7525a7..0778d523 100644 --- a/js/documents.js +++ b/js/documents.js @@ -19,7 +19,7 @@ $.widget('oc.documentGrid', { _load : function(fileId) { // Handle guest user case (let users which are able to write set their name) - if (!richdocuments_directEdit && window.top.oc_current_user == null && this._getGuestNameCookie() == '' + if (!richdocuments_directEdit && window.parent.oc_current_user == null && this._getGuestNameCookie() == '' && (richdocuments_permissions & OC.PERMISSION_UPDATE)) { $('#documentslist').remove(); |