MDL-15310: making the tag:create permission effective in user profile

This commit is contained in:
scyrma
2008-06-19 06:07:20 +00:00
parent 4262494a99
commit f5488402ad
+1 -1
View File
@@ -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'),