Add permissions and publication check in frontoffice