Skip to content

Commit 80aa7f7

Browse files
committed
Merge pull request 'Release/9.5.1' from develop into master
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/onlyoffice-owncloud/pulls/6
2 parents 32398fc + d627268 commit 80aa7f7

30 files changed

+20624
-9359
lines changed

.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "@ownclouders",
3+
"rules": {
4+
"array-bracket-newline": ["error", "consistent"],
5+
"multiline-ternary": ["error", "always-multiline"],
6+
"no-var": "error",
7+
"prefer-const": "error",
8+
"object-shorthand": ["error", "always"],
9+
"eqeqeq": ["error", "smart"]
10+
}
11+
}

.github/workflows/artifact.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Artifact
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches: [master]
57
pull_request:
68
types: [opened, reopened]
79
branches: [master]

.stylelintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-sass-guidelines"],
3+
"rules": {
4+
"scss/at-extend-no-missing-placeholder": null,
5+
"max-nesting-depth": null,
6+
"selector-class-pattern": null,
7+
"selector-max-compound-selectors": null,
8+
"selector-max-id": null,
9+
"selector-no-qualifying-type": null,
10+
"property-no-vendor-prefix": null,
11+
"string-quotes": "double"
12+
}
13+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 9.5.1
4+
## Added
5+
- default empty templates
6+
- support tiff format for inserting
7+
- Finnish, Hebrew, Norwegian, Slovenian empty file templates
8+
9+
## Changed
10+
- demo server address changed
11+
- editing pdf by default
12+
313
## 9.3.1
414
## Changed
515
- creating and editing pdf form

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>ONLYOFFICE connector allows you to view, edit and collaborate on text documents, spreadsheets and presentations within ownCloud 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>
77
<licence>apl2</licence>
88
<author>Ascensio System SIA</author>
9-
<version>9.3.1</version>
9+
<version>9.5.1</version>
1010
<namespace>Onlyoffice</namespace>
1111
<types>
1212
<filesystem/>

controller/callbackcontroller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function emptyfile($doc) {
363363
}
364364
}
365365

366-
$templatePath = TemplateManager::getEmptyTemplatePath("en", ".docx");
366+
$templatePath = TemplateManager::getEmptyTemplatePath("default", ".docx");
367367

368368
$template = file_get_contents($templatePath);
369369
if (!$template) {

controller/editorapicontroller.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,14 @@ public function fillempty($fileId) {
234234
* @param bool $desktop - desktop label
235235
* @param bool $template - file is template
236236
* @param string $anchor - anchor link
237-
* @param bool $forceEdit - open editing
238237
*
239238
* @return JSONResponse
240239
*
241240
* @NoAdminRequired
242241
* @PublicPage
243242
* @CORS
244243
*/
245-
public function config($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $desktop = false, $template = false, $anchor = null, $forceEdit = false) {
244+
public function config($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $desktop = false, $template = false, $anchor = null) {
246245
$user = $this->userSession->getUser();
247246
$userId = null;
248247
$accountId = null;
@@ -381,7 +380,7 @@ public function config($fileId, $filePath = null, $shareToken = null, $version =
381380
&& $file->isUpdateable()
382381
&& !$isPersistentLock
383382
&& (empty($shareToken) || ($share->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE);
384-
$params["document"]["permissions"]["edit"] = $editable && ($forceEdit || !$canFillForms);
383+
$params["document"]["permissions"]["edit"] = $editable;
385384
if (($editable || $restrictedEditing) && ($canEdit || $canFillForms)) {
386385
$ownerId = null;
387386
$owner = $file->getOwner();

controller/editorcontroller.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,6 @@ public function download($fileId, $toExtension = null, $template = false) {
12781278
* @param string $shareToken - access token
12791279
* @param integer $version - file version
12801280
* @param bool $inframe - open in frame
1281-
* @param bool $forceEdit - open editing
12821281
* @param bool $template - file is template
12831282
* @param string $anchor - anchor for file content
12841283
*
@@ -1287,7 +1286,7 @@ public function download($fileId, $toExtension = null, $template = false) {
12871286
* @NoAdminRequired
12881287
* @NoCSRFRequired
12891288
*/
1290-
public function index($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $forceEdit = false, $template = false, $anchor = null) {
1289+
public function index($fileId, $filePath = null, $shareToken = null, $version = 0, $inframe = false, $template = false, $anchor = null) {
12911290
$this->logger->debug("Open: $fileId ($version) $filePath", ["app" => $this->appName]);
12921291

12931292
if (empty($shareToken) && !$this->userSession->isLoggedIn()) {
@@ -1327,8 +1326,7 @@ public function index($fileId, $filePath = null, $shareToken = null, $version =
13271326
"version" => $version,
13281327
"template" => $template,
13291328
"inframe" => false,
1330-
"anchor" => $anchor,
1331-
"forceEdit" => $forceEdit
1329+
"anchor" => $anchor
13321330
];
13331331

13341332
if ($inframe === true) {
@@ -1359,16 +1357,15 @@ public function index($fileId, $filePath = null, $shareToken = null, $version =
13591357
* @param string $shareToken - access token
13601358
* @param integer $version - file version
13611359
* @param bool $inframe - open in frame
1362-
* @param bool $forceEdit - open editing
13631360
*
13641361
* @return TemplateResponse
13651362
*
13661363
* @NoAdminRequired
13671364
* @NoCSRFRequired
13681365
* @PublicPage
13691366
*/
1370-
public function publicPage($fileId, $shareToken, $version = 0, $inframe = false, $forceEdit = false) {
1371-
return $this->index($fileId, null, $shareToken, $version, $inframe, $forceEdit);
1367+
public function publicPage($fileId, $shareToken, $version = 0, $inframe = false) {
1368+
return $this->index($fileId, null, $shareToken, $version, $inframe);
13721369
}
13731370

13741371
/**

0 commit comments

Comments
 (0)