Fix case of rendering inline models without permission
Merge pull request #7 from Fantomas42/fix-inline-permissions

Fix case of rendering inline models without permission
Merge pull request #1 from liberation/master

latest from upstream