diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 16:14:18 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 16:14:18 -0600 |
| commit | 01b0532d2b5866906aecff515d60880e3b740410 (patch) | |
| tree | 6db3136259aac64ce54b57939128de89d173d16e /app | |
| parent | a3d5ee1225e2ce0b6cf3b90525a6876ca8f5ef8c (diff) | |
refactor: connect context logger
Diffstat (limited to 'app')
| -rw-r--r-- | app/services/ability.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ability.go b/app/services/ability.go index 871a9a9b..2f119dcc 100644 --- a/app/services/ability.go +++ b/app/services/ability.go @@ -17,7 +17,7 @@ func NewAbilityService() *AbilityService { } func (h *AbilityService) Allowed(ctx context.Context, req *rpc.AllowRequest) (*rpc.AllowReply, error) { - ok := policies.Allowed(cedar.Request{ + ok := policies.Allowed(ctx, cedar.Request{ Principal: gid.NewEntityUID(req.Subject), Action: cedar.NewEntityUID("Permission", cedar.String(req.Permission)), Resource: gid.NewEntityUID(req.Resource), |
