Feedback Teachers (Blind Feedback)
Feedback activity with selective visibility: students respond, but the teacher (or other roles) cannot see it or access results.
General Description
Feedback Teachers (Blind Feedback) was born from a frequent requirement in institutions: applying surveys where the teacher must not know the activity exists, nor access responses, even with elevated permissions within the course.
Technical Approach and Security
-
Capability Control
- Specific capabilities are defined to view, attempt, and report.
- Visibility is resolved by
has_capability()with course context and module context, avoiding fragile global rules.
-
Defense in Depth
- Removes the module from
course_modinfofor restricted roles. - Protects endpoints:
view.php,complete.php,analysis.phpwithrequire_login()+ capability validation. - Blocks access via URL, internal indexing, and course listings.
- Removes the module from
-
Privacy and Traceability
- Emits Moodle events (
\core\event\) for audit. - Privacy API (GDPR) support for data export/erasure when applicable.
- Emits Moodle events (
Main Features
- “Invisible by Role” Mode
- For each activity, select the role(s) that should not see it.
- Protected Results
- Strict separation between responding vs. viewing reports permissions.
- Backup/Restore Compatibility
- Includes
backup_moodle2andrestore_moodle2for migration between sites.
- Includes