This commit is contained in:
Jabberwocky238
2026-07-16 08:42:21 -04:00
parent 3de46894d0
commit c64116069e
5 changed files with 13 additions and 45 deletions
-3
View File
@@ -35,9 +35,6 @@ const patPrefix = "sgp_" // plaintext token prefix
//
// skip-auth allows all.
func (s *LocalState) AccessByPAT(ctx context.Context, pat, owner, name string, perm common.Perm) (bool, error) {
if s.skipAuth {
return true, nil
}
r, err := s.findRepo(owner, name)
if err != nil {
if errors.Is(err, ErrRepoNotFound) {