Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30344 lti - Hiding roster permission from the UI as it's not impl…

…emented in LTI 1.1.
  • Loading branch information...
commit 59fc5c5404f3295de872ece3aa6bcf11a991c077 1 parent 038d8e3
@scriby scriby authored stronk7 committed
View
2  mod/lti/ajax.php
@@ -63,7 +63,7 @@
FROM {lti_types_config}
WHERE
typeid = :typeid
- AND name IN (\'sendname\', \'sendemailaddr\', \'acceptgrades\', \'allowroster\')
+ AND name IN (\'sendname\', \'sendemailaddr\', \'acceptgrades\')
';
$privacyconfigs = $DB->get_records_sql($query, array('typeid' => $toolid));
View
6 mod/lti/edit_form.php
@@ -126,9 +126,9 @@ public function definition() {
$mform->addHelpButton('lti_acceptgrades', 'accept_grades_admin', 'lti');
// Add grading preferences fieldset where the tool is allowed to retrieve rosters
- $mform->addElement('select', 'lti_allowroster', get_string('share_roster_admin', 'lti'), $options);
- $mform->setDefault('lti_allowroster', '2');
- $mform->addHelpButton('lti_allowroster', 'share_roster_admin', 'lti');
+ //$mform->addElement('select', 'lti_allowroster', get_string('share_roster_admin', 'lti'), $options);
+ //$mform->setDefault('lti_allowroster', '2');
+ //$mform->addHelpButton('lti_allowroster', 'share_roster_admin', 'lti');
$mform->addElement('checkbox', 'lti_forcessl', ' ', ' ' . get_string('force_ssl', 'lti'), $options);
$mform->setDefault('lti_forcessl', '0');
View
6 mod/lti/mod_form.js
@@ -184,8 +184,7 @@
toolInfo = {
sendname: M.mod_lti.LTI_SETTING_DELEGATE,
sendemailaddr: M.mod_lti.LTI_SETTING_DELEGATE,
- acceptgrades: M.mod_lti.LTI_SETTING_DELEGATE,
- allowroster: M.mod_lti.LTI_SETTING_DELEGATE
+ acceptgrades: M.mod_lti.LTI_SETTING_DELEGATE
}
}
@@ -196,8 +195,7 @@
var privacyControls = {
sendname: Y.one('input[name=instructorchoicesendname]'),
sendemailaddr: Y.one('input[name=instructorchoicesendemailaddr]'),
- acceptgrades: Y.one('input[name=instructorchoiceacceptgrades]'),
- allowroster: Y.one('input[name=instructorchoiceallowroster]')
+ acceptgrades: Y.one('input[name=instructorchoiceacceptgrades]')
};
//Store a copy of user entered privacy settings as we may overwrite them
View
6 mod/lti/mod_form.php
@@ -164,9 +164,9 @@ public function definition() {
$mform->setDefault('instructorchoiceacceptgrades', '1');
$mform->addHelpButton('instructorchoiceacceptgrades', 'accept_grades', 'lti');
- $mform->addElement('checkbox', 'instructorchoiceallowroster', ' ', ' ' . get_string('share_roster', 'lti'));
- $mform->setDefault('instructorchoiceallowroster', '1');
- $mform->addHelpButton('instructorchoiceallowroster', 'share_roster', 'lti');
+ //$mform->addElement('checkbox', 'instructorchoiceallowroster', ' ', ' ' . get_string('share_roster', 'lti'));
+ //$mform->setDefault('instructorchoiceallowroster', '1');
+ //$mform->addHelpButton('instructorchoiceallowroster', 'share_roster', 'lti');
//-------------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.