+5
appview/pulls/pulls.go
+5
appview/pulls/pulls.go
···
334
return nil
335
}
336
337
+
// deleted fork
338
+
if repo == nil {
339
+
return nil
340
+
}
341
+
342
// user can only delete branch if they are a collaborator in the repo that the branch belongs to
343
perms := s.enforcer.GetPermissionsInRepo(user.Did, repo.Knot, repo.DidSlashRepo())
344
if !slices.Contains(perms, "repo:push") {