diff --git a/controller/documentcontroller.php b/controller/documentcontroller.php
index 6d5dedab..e93b52df 100644
--- a/controller/documentcontroller.php
+++ b/controller/documentcontroller.php
@@ -305,9 +305,7 @@ class DocumentController extends Controller {
'uploadMaxHumanFilesize' => \OCP\Util::humanFileSize($maxUploadFilesize),
'allowShareWithLink' => $this->settings->getAppValue('core', 'shareapi_allow_links', 'yes'),
'wopi_url' => $webSocket,
- 'edit_groups' => $this->appConfig->getAppValue('edit_groups'),
- 'doc_format' => $this->appConfig->getAppValue('doc_format'),
- 'usergroups' => $usergroups
+ 'doc_format' => $this->appConfig->getAppValue('doc_format')
]);
$policy = new ContentSecurityPolicy();
diff --git a/js/documents.js b/js/documents.js
index 99c2dd3c..9806d00e 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -17,30 +17,6 @@ $.widget('oc.documentGrid', {
jQuery.when(this._load(fileId))
.then(function(){
that._render();
-
- // TODO: Handle all of this logic by sending UserCanWrite: false to loolwsd
- if (!documentsMain.isGuest) {
- var editGroups = $('#edit_groups').val()
- .split('|')
- .filter(function(e) {
- return e.length !== 0;
- });
- var usergroups = $('#usergroups').val()
- .split('|')
- .filter(function(e) {
- return e.length !== 0;
- });
- documentsMain.canEdit = (editGroups.length === 0);
- if (!documentsMain.canEdit && usergroups.length >= 1) {
- for (var idx in usergroups) {
- if (editGroups.indexOf(usergroups[idx]) !== -1) {
- documentsMain.canEdit = true;
- break;
- }
- }
- }
- }
-
documentsMain.renderComplete = true;
});
},
diff --git a/templates/documents.php b/templates/documents.php
index 3840eafd..1d3556c0 100644
--- a/templates/documents.php
+++ b/templates/documents.php
@@ -51,6 +51,4 @@ script('files', 'jquery.fileupload');
-
-
-
+
\ No newline at end of file