Thanks Mary. I think I understand my problem. I need that non-editing teacher to be able to create, edit etc ONLY the Questionnaire activity. To enable that I had to give that role permission to moodle/course:manageactivities... Now they can also edit the title of an activity even if I deny permission to edit that activity.
Not enough granularity in the capabilities, I guess. Never mind!
Not enough granularity in the capabilities, I guess. Never mind!
