finally fixed the filtering based on capability - added capability list to /projects/[id]/capabilities