This commit is contained in:
tobi 2024-12-14 15:04:06 +01:00
parent a3743f8234
commit 02221fc95b

View file

@ -103,10 +103,7 @@ func (m *Module) DomainPermissionSubscriptionsPreviewGETHandler(c *gin.Context)
case "": case "":
// Not set. // Not set.
text := fmt.Sprintf( const text = "permission_type must be set, valid values are block or allow"
"permission_type must be set, valid values are block or allow",
permType,
)
errWithCode := gtserror.NewErrorBadRequest(errors.New(text), text) errWithCode := gtserror.NewErrorBadRequest(errors.New(text), text)
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1) apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
return return