Quote from: opengeek at Dec 29, 2011, 03:30 PMQuote from: vijay.thakre at Dec 29, 2011, 10:12 AMI have same query for getPage. I an listing all resources with the help of getPage using getResources as &element property, inorder to paginate list of items. There are certain resources which do not have view rpermission for all users. But getPage is making page links ( first << 1 2 3 .. >> last) as if it is counting all the items though the items are not rendered.
This is a known issue since the queries which total the records are not aware of the security rules (since they are applied in the object layer when attempting to load the object from the result set). Could you enter a bug for getResources in this regard so this gets addressed sooner than later? It's not going to be an easy fix, but needs to be solved none-the-less.
Did this bug ever get addressed? I'm having a similar issue. I have 2 resources without permissions and 10 with. When logged out, rather then displaying 2 resources without permission, getPage thinks there's 12 resources. It's splitting the two resources over two pages.
Just wondering if there's a workaround for this?