From e162c02825f0ab269f70b9059d34fe12a17ae4f3 Mon Sep 17 00:00:00 2001 From: scyrma Date: Mon, 25 Feb 2008 03:32:59 +0000 Subject: [PATCH] MDL-13404 - merge from 1.9 --- tag/locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tag/locallib.php b/tag/locallib.php index 98d2fdc466..33dbb55cce 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -153,7 +153,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 ) ) { + if ( has_capability('moodle/tag:edit', $systemcontext) && + (tag_record_tagged_with(array('type'=>'user', 'id'=>$USER->id), $tag_object->name) || is_siteadmin($USER->id)) ) { $links[] = ''. get_string('edittag', 'tag') .''; } -- 2.39.5