I have a public space and a private one.
I use the excerpt-include macro to have a part of the private space blend into the public space, meant only for logged in users.
Instead of showing simply nothing to anonymous users, they get an error message:
Fehler beim Rendern des Makros 'excerpt-include': User 'null' does not have permission to view the page 'Link zur internen Knowledge Base'.
(error while rendering the macro 'excerpt-include')
It's inconsistant with other permission handling, where users without permissions don't see pages in search results, structured views like children pages, or recent edits at all, being kept unaware of their existence.