Browse Source

add comments

pull/8729/head
6543 6 years ago
parent
commit
a7c7674b3f
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271
  1. 2
      routers/api/v1/repo/issue.go

2
routers/api/v1/repo/issue.go

@ -658,6 +658,7 @@ func AddIssueSubscription(ctx *context.APIContext) {
}
}
//only admin and user for itself can change subscription
if user.ID != ctx.User.ID && !ctx.User.IsAdmin {
ctx.Error(403, "User", nil)
return
@ -730,6 +731,7 @@ func DelIssueSubscription(ctx *context.APIContext) {
}
}
//only admin and user for itself can change subscription
if user.ID != ctx.User.ID && !ctx.User.IsAdmin {
ctx.Error(403, "User", nil)
return

Loading…
Cancel
Save