Skip to content

Commit b186802

Browse files
Merge pull request #241 from Monilprajapati/billing
validation for the subscription update
2 parents be08a29 + 3a3da58 commit b186802

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

shared.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12199,6 +12199,12 @@ func HandleEditOrg(resp http.ResponseWriter, request *http.Request) {
1219912199
return
1220012200
}
1220112201

12202+
if tmpData.Editing == "subscription_update" && !user.SupportAccess {
12203+
resp.WriteHeader(403)
12204+
resp.Write([]byte(`{"success": false, "reason": "Support access required"}`))
12205+
return
12206+
}
12207+
1220212208
// Allow editing a specific subscription card from UI except Eula and Reference
1220312209
if tmpData.Editing == "subscription_update" {
1220412210
idx := tmpData.SubscriptionIndex

0 commit comments

Comments
 (0)