Moodle allows teachers to set permissions for different user roles within courses. Teachers can determine what roles like students or teaching assistants are able to do in forums, such as editing forums. Moodle has predefined roles including site administrator, manager, course creator, teacher, non-editing teacher, student, guest, and authenticated user. Each role has default permissions that can be modified by teachers or administrators.