diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index 3d67180120..993452d0b3 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -634,7 +634,7 @@ func AddIssueSubscription(ctx *context.APIContext) { // "201": // "$ref": "#/responses/empty" // "304": - // description: User has no right to add subscribe of other user + // description: User can only subscribe itself if he is no admin // "404": // description: Issue not found issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index")) @@ -707,7 +707,7 @@ func DelIssueSubscription(ctx *context.APIContext) { // "201": // "$ref": "#/responses/empty" // "304": - // description: User has no right to remove subscribe of other user + // description: User can only subscribe itself if he is no admin // "404": // description: Issue not found issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index")) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index c933ac3edc..2c817c029a 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -3827,7 +3827,7 @@ "$ref": "#/responses/empty" }, "304": { - "description": "User has no right to add subscribe of other user" + "description": "User can only subscribe itself if he is no admin" }, "404": { "description": "Issue not found" @@ -3882,7 +3882,7 @@ "$ref": "#/responses/empty" }, "304": { - "description": "User has no right to remove subscribe of other user" + "description": "User can only subscribe itself if he is no admin" }, "404": { "description": "Issue not found"