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
Casl doesn’t support arrays in arguments of ability.can because the meaning is ambiguous. Some may expect it to check by OR logic (because this is what his app needs) and others will expect AND logic
How Can I check more than one rule a a time. What I want is to verify if the user has one of the rules.
The following will return true if the user has this set of rules
can('read','Post)
can('create','Post')
can('read','Task')
can('create','Task')
ability.can(['read','create'], ['Post','Task']); // true;
The text was updated successfully, but these errors were encountered: