MDL-37483 improve require_login redirect when activity not accessible