Updated for consistency with code in the video

Removed the {% if is_granted . . . %} line as this is not in the video.