Skip to content

Commit

Permalink
Merge pull request #831 from ONLYOFFICE/feature/nc-27
Browse files Browse the repository at this point in the history
Release/8.0.0
  • Loading branch information
LinneyS authored Jun 14, 2023
2 parents b7350cb + 55b817a commit 0cbaa6e
Show file tree
Hide file tree
Showing 36 changed files with 23 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 8.0.0
## Changed
- compatible with Nextcloud 27

## 7.8.0
## Added
- disable plugins setting
Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>ONLYOFFICE connector allows you to view, edit and collaborate on text documents, spreadsheets and presentations within Nextcloud using ONLYOFFICE Docs. This will create a new Edit in ONLYOFFICE action within the document library for Office documents. This allows multiple users to co-author documents in real time from the familiar web interface and save the changes back to your file storage.</description>
<licence>apache</licence>
<author mail="dev@onlyoffice.com" homepage="https://www.onlyoffice.com/">Ascensio System SIA</author>
<version>7.8.0</version>
<version>8.0.0</version>
<namespace>Onlyoffice</namespace>
<types>
<prevent_group_restriction/>
Expand All @@ -30,7 +30,7 @@
<screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-nextcloud/master/screenshots/open.png</screenshot>
<screenshot>https://raw.githubusercontent.com/ONLYOFFICE/onlyoffice-nextcloud/master/screenshots/open_form.png</screenshot>
<dependencies>
<nextcloud min-version="25" max-version="26"/>
<nextcloud min-version="27" max-version="27"/>
</dependencies>
<settings>
<admin>OCA\Onlyoffice\AdminSettings</admin>
Expand Down
6 changes: 3 additions & 3 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
["name" => "federation#key", "url" => "/api/v1/key", "verb" => "POST"],
["name" => "federation#keylock", "url" => "/api/v1/keylock", "verb" => "POST"],
["name" => "federation#healthcheck", "url" => "/api/v1/healthcheck", "verb" => "GET"],
["name" => "editorapi#config", "url" => "/api/v1/config/{fileId}", "verb" => "GET"],
["name" => "sharingapi#get_shares", "url" => "/api/v1/shares/{fileId}", "verb" => "GET"],
["name" => "sharingapi#set_shares", "url" => "/api/v1/shares", "verb" => "PUT"]
["name" => "editorApi#config", "url" => "/api/v1/config/{fileId}", "verb" => "GET"],
["name" => "sharingApi#get_shares", "url" => "/api/v1/shares/{fileId}", "verb" => "GET"],
["name" => "sharingApi#set_shares", "url" => "/api/v1/shares", "verb" => "PUT"]
]
];
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion lib/appconfig.php → lib/AppConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ public function SetPreview($value) {
* @return bool
*/
public function GetAdvanced() {
return $this->config->getAppValue($this->appName, $this->_advanced, "false") === "true";
//todo: save not working in v27
return false;
//$this->config->getAppValue($this->appName, $this->_advanced, "false") === "true";
}

/**
Expand Down
8 changes: 4 additions & 4 deletions appinfo/application.php → lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ public function __construct(array $urlParams = []) {

public function register(IRegistrationContext $context): void {
if (!class_exists('\\Firebase\\JWT\\BeforeValidException')) {
require_once __DIR__ . "/../3rdparty/jwt/BeforeValidException.php";
require_once __DIR__ . "/../../3rdparty/jwt/BeforeValidException.php";
}
if (!class_exists('\\Firebase\\JWT\\ExpiredException')) {
require_once __DIR__ . "/../3rdparty/jwt/ExpiredException.php";
require_once __DIR__ . "/../../3rdparty/jwt/ExpiredException.php";
}
if (!class_exists('\\Firebase\\JWT\\SignatureInvalidException')) {
require_once __DIR__ . "/../3rdparty/jwt/SignatureInvalidException.php";
require_once __DIR__ . "/../../3rdparty/jwt/SignatureInvalidException.php";
}
if (!class_exists('\\Firebase\\JWT\\JWT')) {
require_once __DIR__ . "/../3rdparty/jwt/JWT.php";
require_once __DIR__ . "/../../3rdparty/jwt/JWT.php";
}

// Set the leeway for the JWT library in case the system clock is a second off
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public function track($doc, $users, $key, $status, $url, $token, $history, $chan
}

// owner of file from the callback link
$ownerId = $hashData->ownerId;
$ownerId = $hashData->userId;
$owner = $this->userManager->get($ownerId);

if (!empty($owner)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ public function config($fileId, $filePath = null, $shareToken = null, $directTok
$shareId = $fileStorage->getShareId();

$extraPermissions = null;
if ($this->extraPermissions !== null) {
//todo: save not working in v27
if (false
&& $this->extraPermissions !== null) {
$extraPermissions = $this->extraPermissions->getExtra($shareId);
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@
</p>

<p>
<input type="checkbox" class="checkbox" id="onlyofficeAdvanced"
<input type="checkbox" class="checkbox" id="onlyofficeAdvanced" disabled="disabled"
<?php if ($_["advanced"]) { ?>checked="checked"<?php } ?> />
<label for="onlyofficeAdvanced"><?php p($l->t("Provide advanced document permissions using ONLYOFFICE Docs")) ?></label>
</br>
<em><?php p($l->t("Not yet available in Nextcloud 27")) ?></em>
</p>

<p>
Expand Down

0 comments on commit 0cbaa6e

Please sign in to comment.