Skip to content

Commit

Permalink
feat: offline viewer in share
Browse files Browse the repository at this point in the history
  • Loading branch information
rivexe committed Feb 9, 2024
1 parent 822d4d8 commit e1451bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controller/editorapicontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ public function config($fileId, $filePath = null, $shareToken = null, $version =
$restrictedEditing = false;
$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 e1451bc

Please sign in to comment.