When running a count query, the result will be an empty array if the user's permission doesn't allow to return any of the possible results.
Nice catch! :) will fix this in few days
fixed in @casl/[email protected]
@casl/[email protected]
will try tonight