We are trying to hide objects from the user via an
escaping
visitor. Our
first idea was something like:
SW2Visitor>>visitSecurityDecoration: aSecturityDecoration
(self context isCurrentUserAllowedTo: aSecturityDecoration parent)
ifFalse: [ self escape ]
Yep, that would be the idea.
The problem is that that
SW2CurrentContextHolder value
is sometimes nil, eg for SW2PathLookup.
Any ideas?
What about setting it in SW2Visitor and make sure that all subclasses
do a propre super call? I think the default ones should do this anyway.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch