MDL-12373 - More instances of links to the participants list being shown in the navigation bar to people without the necessary capability.

I have not copied and pasted the same code into lots of different places. That sucks. We really need to refactor this into a function that builds the navigation up to, and including the user's name. However, I don't have time now. A list of the places touched by this bug (MDL-12373) will at least give a complete list of places that such a refactoring would have to touch.
This commit is contained in:
tjhunt 2008-01-10 10:58:16 +00:00
parent d1a2a97ba3
commit b26adbef4c
9 changed files with 41 additions and 13 deletions

View file

@ -13,7 +13,6 @@ class note_edit_form extends moodleform {
$mform->addElement('textarea', 'content', $strcontent, array('rows'=>15, 'cols'=>40));
$mform->setType('content', PARAM_RAW);
$mform->addRule('content', get_string('nocontent', 'notes'), 'required', null, 'client');
$mform->setHelpButton('content', 'writing');
$mform->addElement('select', 'publishstate', $strpublishstate, note_get_state_names());
$mform->setDefault('publishstate', NOTES_STATE_PUBLIC);