Changes
1 changed files (+2/-1)
-
-
@@ -5,6 +5,7 @@package repo import ( "fmt" "net/http" "code.gitea.io/gitea/models"
-
@@ -128,7 +129,7 @@ func setIssueSubscription(ctx *context.APIContext, watch bool) {//only admin and user for itself can change subscription if user.ID != ctx.User.ID && !ctx.User.IsAdmin { ctx.Error(http.StatusForbidden, "User", nil) ctx.Error(http.StatusForbidden, "User", fmt.Errorf("%s is not permitted to change subscriptions for %s", ctx.User.Name, user.Name)) return }
-