Skip to content

Commit 16a3758

Browse files
committed
fix: better logging
1 parent 02c143d commit 16a3758

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/hooks/authorize/authorize.hook.before.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,18 @@ const handleSingle = async <H extends HookContext = HookContext>(
172172
getMethod,
173173
method,
174174
id,
175+
ability.relevantRuleFor(method, modelName),
175176
paramsGet.query,
177+
'query from casl',
178+
mergeQueryFromAbility(
179+
context.app,
180+
ability,
181+
method,
182+
modelName,
183+
{},
184+
context.service,
185+
options,
186+
),
176187
)
177188
}
178189

0 commit comments

Comments
 (0)