Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I disagree with some of the things you describe as limitaions:

  • Only the student role should have mod/quiz:attempt capability. That is the default. The logic of using this capability to decide who gets the message is correct. (If your role setup is different, I recommend you reveiw it.)
  • The content of the message is a language string. Thefore you can customise it using Language customisation.
  • The groups thing was just a bug, and I think it got fixed: MDL-84327.

I think that pretty much only leaves making the time-perion customisable. For me, the issue is not just the 2 days, it is the built in assumption what all quizzes with a close date have an open date. I tried to point out that was a false assumption before this got implemented, but I was ignored.

Average of ratings: Useful (5)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

To find all the commits for a particular MDL, you can use a git command like this:

I am going to assume you have a git checkout somewhere. If necessary, do this one-time setup:

git remote add upstream https://github.com/moodle/moodle.git
git fetch upstream

(That URL in the first command comes from the 'Code' button at https://github.com/moodle/moodle/.) Then, when you want to find a particular commit

git fetch upstream
git log --grep MDL-12345 upstream/MOODLE_401_STABLE

(The repeated fetch is just to ensure everythign is up to date.) Here, MDL-12345 is the issue you care about, and MOODLE_401_STABLE is branch you want commits from. Ignore any merge commits (which you could do by adding --no-merges to the command-line, but it can be good to see all the history.)

 
 
Average of ratings: Useful (2)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You are basically asking "how to files work in Moodle". Feel free to go and read all the documentation about that if you want to learn. Or you can just trust the system.
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You can't easily. (This is one of the things that the Moodle 5 question bank changes improves.)

Two fiddly options:

Option A:

  1. Remove moodle/question:add capability from the definition of the Manager role.
  2. Give the managers an appropriate role everywhere you do want them to be able to add questions.

Option B:

  1. Remove moodle/question:add capability from the definition of the Manager role.
  2. Go into every top-level course category, and override the Manager role permissions to give them moodle/question:add in that category.
Average of ratings: Useful (4)