Merged MDL-13637 from 1.9

This commit is contained in:
moodler
2008-02-25 03:50:18 +00:00
parent e162c02825
commit 17eef2e89a
+2 -1
View File
@@ -154,7 +154,8 @@ function tag_print_management_box($tag_object, $return=false) {
// only people with moodle/tag:edit capability may edit the tag description
if ( has_capability('moodle/tag:edit', $systemcontext) &&
(tag_record_tagged_with(array('type'=>'user', 'id'=>$USER->id), $tag_object->name) || is_siteadmin($USER->id)) ) {
(tag_record_tagged_with(array('type'=>'user', 'id'=>$USER->id), $tag_object->name) ||
has_capability('moodle/tag:manage', $systemcontext)) ) {
$links[] = '<a href="'. $CFG->wwwroot .'/tag/edit.php?tag='. rawurlencode($tag_object->name) .'">'. get_string('edittag', 'tag') .'</a>';
}