···334334 return nil
335335 }
336336337337+ // deleted fork
338338+ if repo == nil {
339339+ return nil
340340+ }
341341+337342 // user can only delete branch if they are a collaborator in the repo that the branch belongs to
338343 perms := s.enforcer.GetPermissionsInRepo(user.Did, repo.Knot, repo.DidSlashRepo())
339344 if !slices.Contains(perms, "repo:push") {