Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Sep 18, 2025

The “Restrict tag creation and editing to administrators” switch in the SystemTags admin settings was not reflecting the correct database value on page load. This happened because no initial state was being provided.

Fix
This change ensures the correct initial state is set by:

  • Injecting IAppConfig and IInitialState dependencies.
  • Following the same initial state provisioning pattern used by other admin settings in Nextcloud.

The “Restrict tag creation and editing to administrators” switch in the SystemTags
admin settings was not reflecting the correct database value on page load.
This happened because no initial state was being provided.

Fix
This change ensures the correct initial state is set by:

- Injecting IAppConfig and IInitialState dependencies.
- Following the same initial state provisioning pattern used by other admin settings in Nextcloud.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe requested review from a team, ArtificialOwl, provokateurin and sorbaugh and removed request for a team September 18, 2025 17:32
@nfebe nfebe added the 3. to review Waiting for reviews label Sep 18, 2025
@nfebe nfebe requested a review from a team as a code owner September 18, 2025 17:32
@github-project-automation github-project-automation bot moved this to 🏗️ In progress in 📁 Files team Sep 18, 2025
@nfebe
Copy link
Contributor Author

nfebe commented Sep 18, 2025

/backport to stable32

@nfebe
Copy link
Contributor Author

nfebe commented Sep 18, 2025

/backport to stable31

@nfebe
Copy link
Contributor Author

nfebe commented Sep 18, 2025

/backport to stable30

@nfebe nfebe requested review from artonge and come-nc September 18, 2025 17:37
@AndyScherzinger
Copy link
Member

CC FYI @maximelehericy

@susnux susnux merged commit 47ced2b into master Sep 24, 2025
216 of 221 checks passed
@susnux susnux deleted the fix/systemtags-admin-initial-state branch September 24, 2025 10:34
@backportbot
Copy link

backportbot bot commented Sep 24, 2025

The backport to stable30 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable30
git pull origin stable30

# Create the new backport branch
git checkout -b backport/55177/stable30

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 18d571e3

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/55177/stable30

Error: Failed to push branch backport/55177/stable30: remote: {"auth_status":"auth_error","body":"Invalid username or token. Password authentication is not supported for Git operations."}
fatal: Authentication failed for 'https://github.com/nextcloud/server.git/'


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@AndyScherzinger
Copy link
Member

/backport to stable30

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

Labels

Projects

Status: 🏗️ In progress

Development

Successfully merging this pull request may close these issues.

5 participants