Skip to content

Commit 449e489

Browse files
author
Simon Emms
committed
[licensor]: allow admin dashboard access for all levels
The admin dashboard is now an essential part of administering Gitpod so it makes no sense to block it for users.
1 parent 0ce22d9 commit 449e489

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/licensor/ee/pkg/licensor/licensor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ var allowanceMap = map[LicenseLevel]allowance{
9090
PrebuildTime: 50 * time.Hour,
9191
Features: featureSet{
9292
FeaturePrebuild: struct{}{},
93+
94+
FeatureAdminDashboard: struct{}{},
9395
},
9496
},
9597
LevelEnterprise: {

components/licensor/ee/pkg/licensor/licensor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func TestFeatures(t *testing.T) {
219219
Features []Feature
220220
LicenseType LicenseType
221221
}{
222-
{"Gitpod: no license", true, LicenseLevel(0), []Feature{FeaturePrebuild}, LicenseTypeGitpod},
222+
{"Gitpod: no license", true, LicenseLevel(0), []Feature{FeaturePrebuild, FeatureAdminDashboard}, LicenseTypeGitpod},
223223
{"Gitpod: invalid license level", false, LicenseLevel(666), []Feature{}, LicenseTypeGitpod},
224224
{"Gitpod: enterprise license", false, LevelEnterprise, []Feature{
225225
FeatureAdminDashboard,

0 commit comments

Comments
 (0)