Git commits in Moodle 2.6.6 by Andrew Davis

commit a18b4d11094ef085af76feaf2793bf3c004ef2e0
Author: Andrew Davis <andrew@moodle.com>
Date:   Sun, 14 Sep 2014 20:49:16 +0800
Tag:    v2.6.6

MDL-47238 core_user: added an error message if guests access user profiles and they aren't allowed to