How to assign role in user context in Moodle 2?