Fix possible information disclosure within filter api

This fixes visibility of bugs within filter api for users who have
different roles in different projects.