Fix how to safely use is_granted in error pages
Fix app.user check
Merge pull request #2359 from ftassi/fix-caution-note

Fix how to safely use is_granted in error pages