File tree 2 files changed +3
-1
lines changed
enterprise/coderd/license
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ func (set FeatureSet) Features() []FeatureName {
154
154
enterpriseFeatures = slices .DeleteFunc (enterpriseFeatures , func (f FeatureName ) bool {
155
155
switch f {
156
156
// Add all features that should be excluded in the Enterprise feature set.
157
- case FeatureMultipleOrganizations :
157
+ case FeatureMultipleOrganizations , FeatureCustomRoles :
158
158
return true
159
159
default :
160
160
return false
Original file line number Diff line number Diff line change @@ -810,6 +810,7 @@ func TestLicenseEntitlements(t *testing.T) {
810
810
ExpectedErrorContains : "" ,
811
811
AssertEntitlements : func (t * testing.T , entitlements codersdk.Entitlements ) {
812
812
assert .False (t , entitlements .Features [codersdk .FeatureMultipleOrganizations ].Enabled , "multi-org only enabled for premium" )
813
+ assert .False (t , entitlements .Features [codersdk .FeatureCustomRoles ].Enabled , "custom-roles only enabled for premium" )
813
814
},
814
815
},
815
816
{
@@ -822,6 +823,7 @@ func TestLicenseEntitlements(t *testing.T) {
822
823
ExpectedErrorContains : "" ,
823
824
AssertEntitlements : func (t * testing.T , entitlements codersdk.Entitlements ) {
824
825
assert .True (t , entitlements .Features [codersdk .FeatureMultipleOrganizations ].Enabled , "multi-org enabled for premium" )
826
+ assert .True (t , entitlements .Features [codersdk .FeatureCustomRoles ].Enabled , "custom-roles enabled for premium" )
825
827
},
826
828
},
827
829
}
You can’t perform that action at this time.
0 commit comments