Skip to content

Commit

Permalink
update gomod
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrato committed Jul 30, 2024
1 parent 5ee4436 commit 1a246f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ require (
github.com/fatih/color v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fsnotify/fsnotify v1.7.0
github.com/fvbommel/sortorder v1.1.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/go-asn1-ber/asn1-ber v1.5.5 // indirect
Expand Down
6 changes: 3 additions & 3 deletions lib/auth/clusterconfig/clusterconfigv1/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ func (s *Service) UpdateAccessGraphSettings(ctx context.Context, req *clustercon
return nil, trace.Wrap(err)
}

if !modules.GetModules().Features().GetEntitlement(entitlements.Policy).Enabled && !modules.GetModules().Features().AccessGraph {
if !modules.GetModules().Features().Policy.Enabled && !modules.GetModules().Features().AccessGraph {
return nil, trace.AccessDenied("access graph is feature isn't enabled")
}

Expand Down Expand Up @@ -1074,7 +1074,7 @@ func (s *Service) UpsertAccessGraphSettings(ctx context.Context, req *clustercon
return nil, trace.Wrap(err)
}

if !modules.GetModules().Features().GetEntitlement(entitlements.Policy).Enabled && !modules.GetModules().Features().AccessGraph {
if !modules.GetModules().Features().Policy.Enabled && !modules.GetModules().Features().AccessGraph {
return nil, trace.AccessDenied("access graph is feature isn't enabled")
}

Expand Down Expand Up @@ -1118,7 +1118,7 @@ func (s *Service) ResetAccessGraphSettings(ctx context.Context, _ *clusterconfig
return nil, trace.Wrap(err)
}

if !modules.GetModules().Features().GetEntitlement(entitlements.Policy).Enabled && !modules.GetModules().Features().AccessGraph {
if !modules.GetModules().Features().Policy.Enabled && !modules.GetModules().Features().AccessGraph {
return nil, trace.AccessDenied("access graph is feature isn't enabled")
}

Expand Down
16 changes: 8 additions & 8 deletions lib/auth/clusterconfig/clusterconfigv1/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1902,8 +1902,8 @@ func TestGetAccessGraphConfig(t *testing.T) {
testSetup: func(t *testing.T) {
m := modules.TestModules{
TestFeatures: modules.Features{
Entitlements: map[entitlements.EntitlementKind]modules.EntitlementInfo{
entitlements.Policy: {Enabled: true},
Policy: modules.PolicyFeature{
Enabled: true,
},
},
}
Expand Down Expand Up @@ -2060,8 +2060,8 @@ func TestUpdateAccessGraphSettings(t *testing.T) {
testSetup: func(t *testing.T) {
m := modules.TestModules{
TestFeatures: modules.Features{
Entitlements: map[entitlements.EntitlementKind]modules.EntitlementInfo{
entitlements.Policy: {Enabled: true},
Policy: modules.PolicyFeature{
Enabled: true,
},
},
}
Expand Down Expand Up @@ -2185,8 +2185,8 @@ func TestUpsertAccessGraphSettings(t *testing.T) {
testSetup: func(t *testing.T) {
m := modules.TestModules{
TestFeatures: modules.Features{
Entitlements: map[entitlements.EntitlementKind]modules.EntitlementInfo{
entitlements.Policy: {Enabled: true},
Policy: modules.PolicyFeature{
Enabled: true,
},
},
}
Expand Down Expand Up @@ -2279,8 +2279,8 @@ func TestResetAccessGraphSettings(t *testing.T) {
testSetup: func(t *testing.T) {
m := modules.TestModules{
TestFeatures: modules.Features{
Entitlements: map[entitlements.EntitlementKind]modules.EntitlementInfo{
entitlements.Policy: {Enabled: true},
Policy: modules.PolicyFeature{
Enabled: true,
},
},
}
Expand Down

0 comments on commit 1a246f5

Please sign in to comment.