mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-13404 - merge from 1.9
This commit is contained in:
parent
419d5c6e8c
commit
e162c02825
1 changed files with 2 additions and 1 deletions
|
@ -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
|
// 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[] = '<a href="'. $CFG->wwwroot .'/tag/edit.php?tag='. rawurlencode($tag_object->name) .'">'. get_string('edittag', 'tag') .'</a>';
|
$links[] = '<a href="'. $CFG->wwwroot .'/tag/edit.php?tag='. rawurlencode($tag_object->name) .'">'. get_string('edittag', 'tag') .'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue