Git commits in Moodle 2.7.1 by Dan Marsden

commit dafb79106e8d7ed74c20e6885067d82231069255
Author: Dan Marsden <dan@danmarsden.com>
Date:   Fri, 16 May 2014 09:51:58 +0800
Tag:    v2.7.1

MDL-45583 badges: check parent contexts consistantly when checking required role.