Skip to content

Commit

Permalink
Merge pull request #478 from ONLYOFFICE/hotfix/offline-viewer-for-ano…
Browse files Browse the repository at this point in the history
…nymous (a237fd9)

fix: incorrect work of viewer mode
  • Loading branch information
LinneyS authored Apr 4, 2024
2 parents db00360 + 6d77667 commit 5d4a8aa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controller/editorapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,6 @@ public function config($fileId, $filePath = null, $shareToken = null, $version =
$fileStorage = $file->getStorage();
if (empty($shareToken) && $fileStorage->instanceOfStorage("\OCA\Files_Sharing\SharedStorage")) {

$params["editorConfig"]["coEditing"] = [
"mode" => "strict",
"change" => false
];

$storageShare = $fileStorage->getShare();
if (method_exists($storageShare, "getAttributes")) {
$attributes = $storageShare->getAttributes();
Expand Down

0 comments on commit 5d4a8aa

Please sign in to comment.