major fixes

This commit is contained in:
2026-08-22 18:51:17 +02:00
parent 0ff24b1534
commit 0c154254c3
36 changed files with 2212 additions and 42 deletions
@@ -50,6 +50,11 @@ type Capabilities struct {
DisabledFeatures []string `json:"disabled_features"`
FeatureETag string `json:"feature_etag"`
Entitlements Entitlements `json:"entitlements"`
// MemberRestricted is true when the company owner narrowed this member's access.
// MemberDeniedFeatures lists the keys the plan allows but the member overlay denies,
// so the UI can say "ask your administrator" instead of "upgrade your plan".
MemberRestricted bool `json:"member_restricted,omitempty"`
MemberDeniedFeatures []string `json:"member_denied_features,omitempty"`
}
// FeatureGatesUpdate is the PUT /api/admin/feature-gates body.