s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user