added permissions to community search page. added permissions tests