Questionnaire: capabilities support

Questionnaire: capabilities support

Jenny Gray發表於
Number of replies: 5
In Moodle 1.7, as I'm sure you all know, the roles framework changed. I've been using the questionnaire module for a while on OpenLearn, but I'm being asked to reveal the users responses to the general public rather than just site admins.

So, I contacted Mike privately and asked him if he was OK with me going through the module and setting up the new capabilities. He said yes. So this is just to let you all know that I'm going to be doing that over the next couple of months.

If you like the current permissions you shouldn't notice any difference, but if you ever thought about changing who can view/download responses for example, then this should help you out.

I'll post another message below this one with the detail of my planned changes. Please give any feedback about extra capabilities you think I might have missed, or anything else!

There's also an issue in Moodle Tracker http://tracker.moodle.org/browse/CONTRIB-106 if you want to watch progress there.
評比平均分數: -
In reply to Jenny Gray

Re: Questionnaire: capabilities support

Jenny Gray發表於
Here comes the detail...

mod/questionnaire:view - this would allow you to say who can see the survey
mod/questionnaire:print - this would allow you to say who can print the survey, but is the same as view perhaps?
mod/questionnaire:submit - this would allow you to say who can complete the survey
mod/questionnaire:viewresponses - this would allow you to say who can view the report page
mod/questionnaire:viewsingleresponse - to control viewing each individual entry, rather than the entire collection of responses mod/questionnaire:downloadresponses - this would allow you to say who can get the csv output from the report page mod/questionnaire:deleteresponses - this would allow you to say who can delete user entries
mod/questionnaire:delete - this would allow you to say who could delete a questionnaire instance
mod/questionnaire:edit - this would allow you to say who could edit the questionnaire,

I think the current default installation would have view and submit set to allow for everyone above guest, and everything else set to allow for editing teacher and above.

I've separated viewresponses from downloadresponses because on OpenLearn I'd like every-one (even guests) to be able to see the responses in pretty graph form (we're collecting anonymous entries) but I'd only want site administrators to be able to take them away in csv for further analysis (in OpenLearn we don't have "teachers" as it is a peer-support environment).

Finally, you might want another capability for who can edit the questions inside a survey, and possibly one to control whether people can create templates or not, and another to control whether people could copy other surveys or not, though at the OU these would be the same set of people as mod/questionnaire:edit so I'm not sure how useful the extras would be to a wider audience.

In reply to Jenny Gray

Re: Questionnaire: capabilities support

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
I don't think it makes sense to have print separate from view. Any web browser lets you print anything you can view.

delete and edit - aren't there standard capabilies - moodle/course:something that are used to control this for all modules.
In reply to Jenny Gray

Re: Questionnaire: capabilities support

Gareth Morgan發表於

To all,

I have posted a set of file patches to tracker item CONTRIB-106. Could someone possibly have a look at them at some point, and confirm that they are OK to be committed to CVS?

Unfortunately, I will be going to a new job after today, and will not be working with Moodle.  Therefore, I won't be tracking this forum, but colleagues of mine will continue to monitor it, and should be able to do the CVS commit when it is appropriate.

Thanks, and best wishes for the future of Moodle,

Gareth Morgan.