Keep one shared Keto Resource namespace, document the <resource>:<row-id> object name, fix the README per-row example
CI / full-gate (push) Successful in 4m30s
CI / full-gate (push) Successful in 4m30s
This commit is contained in:
+2
-1
@@ -41,7 +41,8 @@ export function can(ctx: RequestContext, permission: string): boolean {
|
||||
}
|
||||
|
||||
// Live Keto relationship check at the point of action. The subject is the current user;
|
||||
// anonymous ⇒ false (fail-closed, no Keto call).
|
||||
// anonymous ⇒ false (fail-closed, no Keto call). In the shared `Resource` namespace the object
|
||||
// is `<resource>:<row-id>`, never a bare id (README → Fine-grained, per-row access).
|
||||
export async function check(
|
||||
keto: KetoClient,
|
||||
ctx: RequestContext,
|
||||
|
||||
Reference in New Issue
Block a user