From 413b2b63d92c36b9ba5337b4fc3672f672301123 Mon Sep 17 00:00:00 2001
From: 6543 <6543@obermui.de>
Date: Tue, 29 Oct 2019 15:38:33 +0100
Subject: [PATCH] more meaningfull description

---
 routers/api/v1/repo/issue.go   | 4 ++--
 templates/swagger/v1_json.tmpl | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

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"