cd496f159d
The upstream reading permission fix (#37781) refactored Repository to have direct IsAdmin/CanWrite/CanRead methods, but our fork's Repository struct still uses the Permission field for these. Keep the new CheckTokenScopes function but use ctx.Repo.Permission.* for the middleware functions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>