diff --git a/tag/locallib.php b/tag/locallib.php index 33dbb55cce1..49cc7e56fad 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -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[] = ''. get_string('edittag', 'tag') .''; }