Insufficient capability checks made it possible to disable badges a user does not have permission to access.Referenceshttps://moodle.org/mod/forum/discuss.php?d=466148http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-84239