WIP: Feature/permissions for elastic search