We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 701d21d commit 4a3bfaaCopy full SHA for 4a3bfaa
code/examples/user-policy.md
@@ -33,8 +33,8 @@ function getPolicyByRole(role) {
33
const policy = POLICY_SET[role];
34
35
return {
36
- canInvite: policy.include("invite"),
37
- canRead: policy.include("view"),
+ canInvite: policy.includes("invite"),
+ canRead: policy.includes("view"),
38
};
39
}
40
en/code/examples/user-policy.md
0 commit comments