MDL-14392 - Notice from description question types when you don't have edit permission

This commit is contained in:
tjhunt
2008-04-16 16:56:33 +00:00
parent 88145e9d08
commit 096d42f47e
@@ -54,6 +54,7 @@ class description_qtype extends default_questiontype {
}
// For editing teachers print a link to an editing popup window
$editlink = '';
if (question_has_capability_on($question, 'edit')) {
$stredit = get_string('edit');
$linktext = '<img src="'.$CFG->pixpath.'/t/edit.gif" alt="'.$stredit.'" />';