From 17eef2e89a9eb55e667b660ae478ba5d9a5f417f Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Feb 2008 03:50:18 +0000 Subject: [PATCH] Merged MDL-13637 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 33dbb55cce..49cc7e56fa 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') .''; } -- 2.39.5