Skip to content

Commit

Permalink
Effect now has type StatementEffect; and regenerate mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
arielshaqed committed Mar 6, 2024
1 parent 3f6074d commit 4d335e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pkg/auth/mock/mock_auth_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/auth/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ func (a *APIAuthService) WritePolicy(ctx context.Context, policy *model.Policy,
for i, s := range policy.Statement {
stmts[i] = Statement{
Action: s.Action,
Effect: s.Effect,
Effect: StatementEffect(s.Effect),
Resource: s.Resource,
}
}
Expand Down Expand Up @@ -1551,7 +1551,7 @@ func serializePolicyToModalPolicy(p Policy) *model.Policy {
stmts := make(model.Statements, len(p.Statement))
for i, apiStatement := range p.Statement {
stmts[i] = model.Statement{
Effect: apiStatement.Effect,
Effect: string(apiStatement.Effect),
Action: apiStatement.Action,
Resource: apiStatement.Resource,
}
Expand Down

0 comments on commit 4d335e3

Please sign in to comment.