But if you do want to check if a user has access to a certain module / function, then fetch('content', 'access') is a cleaner solution.
* node templates use content view cache, witch is unique pr user rights, but not user id. So you have to disable view cache (search for cache_ttl) if you need to use name / id in a node template.