Skip to content

fix: only show the office settings to users who can manage fonts - #4398

Merged
kulmann merged 1 commit into
mainfrom
fix/office-settings-permission
Nov 10, 2026
Merged

kulmann merged 1 commit into
mainfrom
fix/office-settings-permission

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

The Office settings page and its nav item are now only available to users with the font management permission; everyone else gets redirected like on the other admin settings pages, instead of seeing a page whose actions the server rejects.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: the font management permission maps to an ability; the office route redirects and the nav item hides without it
  • test case 2: browser: a regular user and a space admin get redirected from /admin-settings/office and don't see the Office nav item (desktop, Pixel 7)
  • test case 3: browser: admin opens the page, uploads and deletes a font; direct URL on a cold load works for admin and redirects a user
  • test case 4: browser: other admin settings pages and the App Store unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@kulmann
kulmann merged commit f0f34c4 into main Nov 10, 2026
29 checks passed
@kulmann
kulmann deleted the fix/office-settings-permission branch November 10, 2026 11:51
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
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.

Office settings page opens for users without the font management permission

2 participants