Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaaa5174

Browse files
authored
chore: move custom-roles feature to permium license (#14201)
Currently an unsafe experiment, so it can be moved safely
1 parent591385f commitaaa5174

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎codersdk/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func (set FeatureSet) Features() []FeatureName {
154154
enterpriseFeatures=slices.DeleteFunc(enterpriseFeatures,func(fFeatureName)bool {
155155
switchf {
156156
// Add all features that should be excluded in the Enterprise feature set.
157-
caseFeatureMultipleOrganizations:
157+
caseFeatureMultipleOrganizations,FeatureCustomRoles:
158158
returntrue
159159
default:
160160
returnfalse

‎enterprise/coderd/license/license_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ func TestLicenseEntitlements(t *testing.T) {
810810
ExpectedErrorContains:"",
811811
AssertEntitlements:func(t*testing.T,entitlements codersdk.Entitlements) {
812812
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")
813814
},
814815
},
815816
{
@@ -822,6 +823,7 @@ func TestLicenseEntitlements(t *testing.T) {
822823
ExpectedErrorContains:"",
823824
AssertEntitlements:func(t*testing.T,entitlements codersdk.Entitlements) {
824825
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")
825827
},
826828
},
827829
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp