MDL-13255 - hidden activity capability check was wrong, but require_login() handles it for us when passsed $cm
MDL-13255 - hidden activity capability check was wrong, but require_login()
handles it for us when passsed $cm

dilawar/moodle