Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Conversation

eharris
Copy link
Contributor

@eharris eharris commented Jun 15, 2019

It makes no sense and is potentially dangerous to allow a user to delete their own account, or to be able to remove the admin role from themselves, so this removes the ability to do so.

@muff1nman
Copy link
Contributor

Shouldn't there also be a server side check here as well?

@eharris eharris force-pushed the disable-self-delete branch from 3bbb0db to d1598db Compare June 27, 2019 04:58
@eharris eharris force-pushed the disable-self-delete branch from d1598db to 983d688 Compare June 27, 2019 05:28
@eharris
Copy link
Contributor Author

eharris commented Jun 27, 2019

@muff1nman I added validation to reject these on the server side too. Didn't bother with translations for the error messages since users won't even be given the option with the prior changes.

@muff1nman muff1nman merged commit 983d688 into airsonic:master Jul 2, 2019
@eharris eharris deleted the disable-self-delete branch July 2, 2019 10:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants