Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a permission check for getting server docker image in Java Version Modal #4795

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Sharktheone
Copy link

This fixes the "spamming" of http requests from the Java Version Modal.
If a user does not have the "startup.docker-image" permission and tabs into pterodactyl, 4 http requests are made.

And this can stack up quickly

image

For this I simply added a permission check before the http request and return undefined if the user does not have the permission.
I also added the MC 1.19 invalid Java version message to the errors array.

@Sharktheone Sharktheone changed the title Add a permission check for getting server startup command in Java Version Modal Add a permission check for getting server docker image in Java Version Modal May 31, 2023
@danny6167 danny6167 self-assigned this Jun 26, 2024
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.

2 participants