Skip to content

fix(systemtags): Hide tag color picker from non-admin users - #67675

Open
kukanggg89 wants to merge 1 commit into
nextcloud:masterfrom
kukanggg89:fix-systemtags-color-picker-admin-67571
Open

kukanggg89 wants to merge 1 commit into
nextcloud:masterfrom
kukanggg89:fix-systemtags-color-picker-admin-67571

Conversation

@kukanggg89

Copy link
Copy Markdown
Contributor

SystemTagPicker showed the color picker to anyone allowed to create tags, but changing a tag (including its color) is admin-only on the server, so a regular user picking a color got an HTTP 403 that surfaced as an unhandled promise rejection with no visible error. Only show the picker to admins, and catch a failed color update in onColorChange: restore the previous color and show the failure instead of letting the rejection go unhandled.

Fixes #67571

Assisted-by: Muse:Muse Spark 1.3

  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

SystemTagPicker showed the color picker to anyone allowed to create
tags, but changing a tag (including its color) is admin-only on the
server, so a regular user picking a color got an HTTP 403 that surfaced
as an unhandled promise rejection with no visible error. Only show the
picker to admins, and catch a failed color update in onColorChange:
restore the previous color and show the failure instead of letting
the rejection go unhandled.

Fixes nextcloud#67571

Signed-off-by: parel <farelalfarizi89@gmail.com>
Assisted-by: Muse:Muse Spark 1.3
@kukanggg89
kukanggg89 requested a review from a team as a code owner December 4, 2026 04:38
@kukanggg89
kukanggg89 requested review from kristian-zendato and pringelmann and removed request for a team December 4, 2026 04:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: System tag color picker remains actionable for non-admin users and fails silently with HTTP 403

1 participant