Skip to content

Block more endpoints if read-only mode is enabled#1058

Merged
Toastbrot236 merged 10 commits intoLittleBigRefresh:mainfrom
Toastbrot236:block
Mar 28, 2026
Merged

Block more endpoints if read-only mode is enabled#1058
Toastbrot236 merged 10 commits intoLittleBigRefresh:mainfrom
Toastbrot236:block

Conversation

@Toastbrot236
Copy link
Copy Markdown
Contributor

This makes a few adjustments to read-only mode:

  • Now all upload/modification endpoints for both the game and public API are blocked if the user has no perms due to this mode (still excluding account/profile updating, contest updating and moderation)
  • The only 2 deletion endpoints which were previously blocked (playlist deletion) are no longer affected by read-only mode. This is mostly for consistency, and because this mode is primarily intended to block new content.
  • The user will now be properly notified if their level publish has failed because of this.

Copy link
Copy Markdown
Contributor

@FeTetra FeTetra left a comment

Choose a reason for hiding this comment

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

lgtm

@Toastbrot236 Toastbrot236 merged commit ef7a165 into LittleBigRefresh:main Mar 28, 2026
3 checks passed
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.

2 participants