Steps to reproduce
- Login as admin.
- Access to Site administration > Messaging > Notification settings.
- Lock one of the notifications (for instance, "Assignment notifications").
- Go to the user Notification preferences (/message/notificationpreferences.php?userid=x).
Expected behaviour
The user can't enable/disable the locked notification (in 3.11, they are displayed with the "Locked" text).