+11
-7
knotserver/handler.go
+11
-7
knotserver/handler.go
······
+12
-114
knotserver/xrpc/router.go
+12
-114
knotserver/xrpc/router.go
······+r.With(x.ServiceAuth.VerifyServiceAuth).Post("/"+tangled.RepoSetDefaultBranchNSID, x.SetDefaultBranch)-WithError(fmt.Errorf("DID does not have sufficent access permissions for this operation: %s", d)),
+12
-10
knotserver/xrpc/set_default_branch.go
+12
-10
knotserver/xrpc/set_default_branch.go
···resp, err := comatproto.RepoGetRecord(r.Context(), &xrpcc, "", tangled.RepoNSID, repoAt.Authority().String(), repoAt.RecordKey().String())if ok, err := x.Enforcer.IsPushAllowed(actorDid.String(), rbac.ThisServer, didPath); !ok || err != nil {