8000 `quick-repo-deletion` - Don't show on undeletable organization forks by fregante · Pull Request #8752 · refined-github/refined-github · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@fregante
Copy link
Member
@fregante fregante commented Nov 9, 2025

Test URLs

  1. join org
  2. be assigned a role just before "admin" (you should see the Settings tab)
  3. find a fork in that org

@fregante fregante added the bug label Nov 9, 2025

// Faster DOM-based check, if the DOM is available.
// This can be cached because it's the highest level of access
if (canUserEditRepo()) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because the DOM check simply looked for the Settings tab, which does not mean you're an admin

@fregante fregante merged commit 7541319 into main Nov 9, 2025
15 checks passed
@fregante fregante deleted the sir-this-is-a-wendys branch November 9, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

"Delete Fork" button shows up even when I don't have permissions to delete fork.

2 participants

0