Skip to content

Commit

Permalink
fix CheckPermission
Browse files Browse the repository at this point in the history
  • Loading branch information
akiyatomohiro committed Nov 6, 2024
1 parent dbb111c commit 60843e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
4 changes: 4 additions & 0 deletions cerbos/client/permission_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func NewPermissionChecker(service string, dashboardURL string) *PermissionChecke
}

func (p *PermissionChecker) CheckPermission(ctx context.Context, authInfo *appx.AuthInfo, resource string, action string) (bool, error) {
if p == nil {
return false, fmt.Errorf("permission checker not found")
}

if authInfo == nil {
return false, fmt.Errorf("auth info not found")
}
Expand Down
38 changes: 0 additions & 38 deletions cerbos/client/permission_checker_utils.go

This file was deleted.

0 comments on commit 60843e8

Please sign in to comment.