View totals from hidden docs show up

Hi, i have a view, that is categorized and has totals for the docuemnts, but also, i use ROLES to limit certain types of documents from users, a funny thing i noticed was users are able to see totals but NOT the document itself, is there a way to fix this? or is this expected behaviour, i find it really weird because it defeats the purpose of hiding the document

Subject: View totals from hidden docs show up

It is the expected behaviour – the totals are generated when the view is indexed, and the index contains everything the SERVER can see. Local replicas and private views will only index what the user can see.