Skip to content

Conversation

@kulmann
Copy link
Contributor

@kulmann kulmann commented Mar 25, 2025

Description

Set UserCanNotWriteRelative to true so that Save As and Export As buttons get hidden in the UI.

See https://sdk.collaboraonline.com/docs/advanced_integration.html?highlight=usercannotwriterelative#usercannotwriterelative for more info.

Related Issue

Motivation and Context

Don't offer broken functionality in the UI.

How Has This Been Tested?

Manually with custom built docker image.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

@kulmann kulmann changed the title fix(collaboration): hide SaveAs and ExportAs buttons in web office [full-ci] fix(collaboration): hide SaveAs and ExportAs buttons in web office Mar 25, 2025
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch 2 times, most recently from 5718709 to f34c932 Compare March 25, 2025 08:59
@kulmann kulmann requested a review from micbar March 25, 2025 09:01
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from f34c932 to 19ea614 Compare March 25, 2025 09:04
micbar
micbar previously requested changes Mar 25, 2025
fileinfo.KeyLicenseCheckForEditIsEnabled: f.cfg.App.LicenseCheckEnable,

// forbid PutRelativeFile, hide "Save As" and "Export As" buttons
fileinfo.KeyUserCanNotWriteRelative: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to only be disabled for collabora.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Please check again :-)

@kulmann kulmann mentioned this pull request Mar 25, 2025
2 tasks
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from dce2e5c to 5c8f5ab Compare March 25, 2025 12:47
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from 5c8f5ab to 43a5e24 Compare March 26, 2025 08:43
@kulmann kulmann requested a review from micbar March 26, 2025 08:59
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from 0b47e80 to 63cd3c6 Compare March 26, 2025 09:29
@ScharfViktor
Copy link
Contributor

tested.

no buttons SaveAs and ExportAS
image

apiWopi tests are green now

approve from testing side 👍

@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from 27a64bd to a6774ab Compare March 26, 2025 11:11
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from a6774ab to 27e3646 Compare March 26, 2025 11:12
@ScharfViktor
Copy link
Contributor

Ci has 2 fails:
core-api-test 7 without php

Screenshot 2025-03-26 at 12 05 05

and e2e multiple services.
seems as flaky because it was “green” earlier

@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch 2 times, most recently from e95535c to 80cdfb0 Compare March 26, 2025 13:06
@kulmann kulmann force-pushed the weboffice-disable-save-as-button branch from 80cdfb0 to 700ffbc Compare March 26, 2025 13:31
@kulmann kulmann requested a review from JammingBen March 26, 2025 13:59
@kulmann kulmann merged commit 7dcdc53 into main Mar 26, 2025
72 checks passed
@kulmann kulmann deleted the weboffice-disable-save-as-button branch March 26, 2025 14:06
@openclouders openclouders mentioned this pull request Mar 26, 2025
1 task
@kulmann kulmann mentioned this pull request May 19, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collabora. Unable to save/export file to a different format

5 participants