blocks: Add capability required for Moodle's "My" page
Merge pull request #4 from totara/master

More 2.4 compatiblity - thanks Alastair