Skip to content

Commit

Permalink
[licensor]: allow admin dashboard access for all levels
Browse files Browse the repository at this point in the history
The admin dashboard is now an essential part of administering Gitpod
so it makes no sense to block it for users.
  • Loading branch information
Simon Emms committed Mar 7, 2022
1 parent 0ce22d9 commit 449e489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/licensor/ee/pkg/licensor/licensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ var allowanceMap = map[LicenseLevel]allowance{
PrebuildTime: 50 * time.Hour,
Features: featureSet{
FeaturePrebuild: struct{}{},

FeatureAdminDashboard: struct{}{},
},
},
LevelEnterprise: {
Expand Down
2 changes: 1 addition & 1 deletion components/licensor/ee/pkg/licensor/licensor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestFeatures(t *testing.T) {
Features []Feature
LicenseType LicenseType
}{
{"Gitpod: no license", true, LicenseLevel(0), []Feature{FeaturePrebuild}, LicenseTypeGitpod},
{"Gitpod: no license", true, LicenseLevel(0), []Feature{FeaturePrebuild, FeatureAdminDashboard}, LicenseTypeGitpod},
{"Gitpod: invalid license level", false, LicenseLevel(666), []Feature{}, LicenseTypeGitpod},
{"Gitpod: enterprise license", false, LevelEnterprise, []Feature{
FeatureAdminDashboard,
Expand Down

0 comments on commit 449e489

Please sign in to comment.