Skip to content

Conversation

sebastienserre
Copy link

Updated logic to prevent committers from removing themselves. This ensures better user management.

Should fix https://meta.trac.wordpress.org/ticket/7947

Updated logic to prevent committers from removing themselves. This ensures better user management and eliminates accidental self-removal scenarios. Code indentation was also adjusted for better readability.
@dd32
Copy link
Member

dd32 commented Apr 10, 2025

I don't think this is the optimal route, since there are times when you want to remove yourself from a plugin.

I'd probably only restrict it when you're the owner of the plugin, or you're the only committer of the plugin.

Perhaps this would be better implemented through a modal warning that they're about to remove themselves.

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