Hiding activities by role on course page would allow controling what certain roles, guests for instance, can and cannot see on the course page. This should be particularly useful on the front page. But afaict this is currently not possible mainly because mod capabilities have no common basis (e.g. a common 'view' capability) which could be used to filter the display of activity/resource links on the course page. Access lib does not offer a method for checking the existence of a capability and so a condition in print_section cannot work unless all mods are augmented with a designated capability, or a specific list capabilities covering all mods is explicitly stated in the condition.
There are many possible ways to add this functionality, more or less painful. I'm wondering if anyone has already thought about that and have some insights into what would be the least or the most preferable approach.