{%-if CHECK_ACCESS("@loggedin", "@deny")-%}
This template requires you to be logged in before you can acces it.
It also disallows any write-requests like POST, PUT, etc.
Check the first and last lines of the file to see how it's done.
WARNING: Always do check that the CHECK_ACCESS() and corresponding WebFrame.auth.check_access() methods return True before presenting the resource.