Skip to content

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

Open
Toastbrot236 wants to merge 5 commits intoLittleBigRefresh:mainfrom
Toastbrot236:block
Open

Block more endpoints if read-only mode is enabled#1058
Toastbrot236 wants to merge 5 commits intoLittleBigRefresh:mainfrom
Toastbrot236:block

Conversation

@Toastbrot236
Copy link
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.

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.

1 participant