Hi Anthony - I'll try to clarify. Currently, there is a mod/feedback:complete capability. The default setting for a teacher is 'prevent' and the default for a student is 'allow', which is fine. As an admin I should be able to change or override it if I want things to behave differently.
Now, with a non-anonymous feedback, whatever the 'complete' capability is set to is being honored. If I leave the capability to 'prevent' for teachers, teachers cannot answer the questions. If I change it to 'allow', they can. This is just what I would expect.
With an anonymous feedback, however, the code snippet above sets the 'complete' capability to true for everyone - and admin settings for that capability are just ignored. For instance, if I leave the mod/feedback:complete capability for the teacher role set to 'prevent' , teachers can answer the questions anyway.
I may be missing something, but I don't think it should be necessary to set that 'complete' capability to true in the code for anonymous feedbacks.
Thanks,
-Ann
Andreas - I am not sure what the logic was behind not allowing users with the ability to edit questions to participate in a feedback. For Colin's site, I have at least temporarily modified the code. For me the lines in question are:
if($feedback->anonymous == FEEDBACK_ANONYMOUS_YES AND !$capabilities->edititems) {
and
if($capabilities->complete AND !$capabilities->edititems) {
Why is the complete capability not sufficient? What is it that we are trying to prevent by having the not editterms? Sorry if I am missing something obvious.
Peace - Anthony