Git commits in Moodle 2.5.7 by Dan Marsden

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

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