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

Admins can leave a leaderboard and there won't be more admins #24

Closed
Eldemarkki opened this issue May 12, 2022 · 0 comments · Fixed by #28
Closed

Admins can leave a leaderboard and there won't be more admins #24

Eldemarkki opened this issue May 12, 2022 · 0 comments · Fixed by #28
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Eldemarkki
Copy link
Member

Currently if a leaderboard only has user X in it, and X is an admin, they can leave the leaderboard. Then the leaderboard won't have any admins, and so no one can delete it and it will stay in the database forever.

I propose that an admin should only be allowed to leave a leaderboard if there are other admins left. If there aren't any, the last admin should only be able to delete the leaderboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants