Having tested, this is functional but not recursive in subfolders as it is possible with ~login: little bug
it is not recursive by design. it works exactly as documented. thus it is not a bug.
The risk is to have access for a user to a section [mysection] which we would like to keep hidden. To by-pass the problem my solution is to create in the root a named virtual file "~mysection" and to put it hidden
nice workaround.
but if anyone has such need, i could make [sections] optionally invisible, this way
[section|hidden]
but only if it is really useful.
Exepté for sections predefined in hfs, it would be possible that are effectively visible only sections such as [~mysection] and in all subfolders as with ~login?
If a name of section begins by ~, then it will be visible by the url only on this condition.
i guess this would break compatibility with most recent templates.
anyway, if such thing is needed, i could introduce an option like
[section|visible]
and all those who don't have it, are not accessible.
but what to do it depends on what people wants.