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