repo collaborator list reports every permission as none #276
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fj repo collaborator listshowsnonein the PERMISSION column for every collaborator, whatever access they actually have.Forgejo's
GET /repos/{owner}/{repo}/collaboratorsreturns plain user objects, andpermissionscomes backnull.Collaborator.permissionsis#[serde(default)], so it deserializes to all false, andpermission_level()insrc/api/repo_collaborators.rsfalls through to"none".The list endpoint can't answer the question, so the column needs
GET /repos/{owner}/{repo}/collaborators/{collaborator}/permissionfor each row. The alternative is to drop the column, but thenlistcan't confirm whataddjust did.