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
The order of definitions in abilities matters for the generated query. One order generates an expected and valid query, the other generates an illegal table alias.
Steps to reproduce
This is probably a similar issue to #696.
The order of definitions in abilities matters for the generated query. One order generates an expected and valid query, the other generates an illegal table alias.
https://gist.github.com/dominikb/83adb5465222c6b0b224df7bada48931
I've already tried using the suggested fix (#786) but this does not fix the issue.
The issue is the same (albeit with a different error message) when using PostgreSQL as a database.
Expected behavior
Both abilities result in a query that is effectively the same (with different ordering of where-clauses).
Actual behavior
The
BrokenAbility
generates a table alias that is not available, and querying records fails.System configuration
Rails version: 7.2.0
Ruby version: 3.3.4
CanCanCan version: 3.6.0
The text was updated successfully, but these errors were encountered: