You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ability.can(“read”, “User”, { role: “admin” }). Throw exception if the last argument is an object
<Can I=“read” a=“user” of={{ role: “admin” }}>test</Can>. Throw exception when multiple subject or action properties are used (valid for React and Vue)
warn in development mode if Ability contains only forbidden rules (should have at least 1 regular rule)
The text was updated successfully, but these errors were encountered:
There are few pitfalls starters do:
ability.can(“read”, “User”, { role: “admin” })
. Throw exception if the last argument is an object<Can I=“read” a=“user” of={{ role: “admin” }}>test</Can>
. Throw exception when multiple subject or action properties are used (valid for React and Vue)Ability
contains only forbidden rules (should have at least 1 regular rule)The text was updated successfully, but these errors were encountered: