Adapt to new foreman permission model

Feel free to merge when foreman will have new permissions.