From: scyrma Date: Thu, 19 Jun 2008 06:07:20 +0000 (+0000) Subject: MDL-15310: making the tag:create permission effective in user profile X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f5488402adb5f3804bc422be151d0e7b07b18548;p=moodle.git MDL-15310: making the tag:create permission effective in user profile --- diff --git a/user/editlib.php b/user/editlib.php index 446c729fc1..fd4d8bf74c 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -221,7 +221,7 @@ function useredit_shared_definition(&$mform) { } - if( !empty($CFG->usetags)) { + if ( !empty($CFG->usetags) && has_capability('moodle/tag:create', get_context_instance(CONTEXT_SYSTEM)) ) { $mform->addElement('header', 'moodle_interests', get_string('interests')); $mform->addElement('textarea', 'interests', get_string('interestslist'), 'cols="45" rows="3"'); $mform->setHelpButton('interests', array(false, get_string('helpinterestslist'),