Gitlab CSE Unil

Commit 303c4abb authored by M. Chardon's avatar M. Chardon
Browse files

correction droit + correction bug maj statut étudiant

parent 57462c66
......@@ -219,7 +219,7 @@ if ($action == 'loadallpages') {
$page = json_decode($pagejson);
$index = required_param('index', PARAM_INT);
$added = page_editor::update_annotations_status($grade->id, $page->annotations);
$added = page_editor::update_annotations_status($page->annotations);
if ($added != count($page->annotations)) {
array_push($response->errors, get_string('couldnotsavepage', 'assignfeedback_editpdfplus', $index + 1));
}
......
......@@ -101,7 +101,7 @@ $string['white'] = 'White';
$string['yellow'] = 'Yellow';
$string['yellowlemon'] = 'Lemon yellow';
$string['draftchangessaved'] = 'Annotations sauvées';
$string['nodraftchangessaved'] = 'Changement sauvés';
$string['nodraftchangessaved'] = 'Changements sauvés';
$string['preparesubmissionsforannotation'] = 'Préparation de la validation des annotations';
$string['question_select'] = 'Question';
$string['question_select_with'] = 'Avec';
......
......@@ -318,7 +318,7 @@ class assign_feedback_editpdfplus extends assign_feedback_plugin {
*/
public function is_enabled() {
if ($this->assignment->get_context()) {
return has_capability('mod/assignfeedback_editpdf:use', $this->assignment->get_context());
return has_capability('mod/assignfeedback_editpdf:use', $this->assignment->get_context(),null, false);
}
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment