In TUIX, there is one special property called priv. This removes elements for administrators who don't have the named permission; it's equivalent to doing an unset() in your PHP code.
You can check Example Module 4: An Organizer Application for an example.