You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
repo-header-info Stargazers link returns 404 due to GitHub access restrictions #9964
This change breaks a Refined GitHub feature. Currently, the extension makes the repository star count clickable, directing users to the stargazers page. Because the GitHub restriction is already active, clicking this link now results in a 404 page for any public user who isn't a repo admin or collaborator.
See the feature in question here:
I would love to take care of this and submit a PR to fix it. Please assign this issue to me!
How to replicate the issue + URL
Ensure you are not logged in as a collaborator/admin for the target repository.
Thank you for the detailed issue! Yes PR welcome. I think that you can obtain this information via the existing GraphQL query, e.g. via "viewerCanAdmin" field or something like that.
@fregante Thanks! Since GitHub restricts access to both "admins and collaborators", checking viewerCanAdminister will be too restrictive because it only returns true for ADMINs.
Activity
fregante commentedon Aug 10, 2026
Thank you for the detailed issue! Yes PR welcome. I think that you can obtain this information via the existing GraphQL query, e.g. via "viewerCanAdmin" field or something like that.
kerollosy commentedon Aug 10, 2026
@fregante Thanks! Since GitHub restricts access to both "admins and collaborators", checking
viewerCanAdministerwill be too restrictive because it only returns true for ADMINs.I'll use the
viewerPermissionfield instead to check if the user hasADMIN,MAINTAIN,WRITE, orTRIAGEaccess. GitHub's changelog is slightly vague on the exact permission cut-off, but this safely covers actual collaborators while excluding READ (which everyone has on public repos). https://docs.github.com/en/rest/activity/starring?apiVersion=2026-03-10#list-stargazersI'll get a PR open shortly!