Skip to content

Commit

Permalink
Exercise: Check correct permission when uploading tutor feedback files (
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Feb 4, 2025
1 parent 511e1ab commit b979342
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getTutorFeedbackFileResourceCollectionGUI(
$lng = $this->domain_service->lng();
$lng->loadLanguageModule("exc");

$write = $this->domain_service->access()->checkAccess('write', '', $ref_id);
$write = $this->domain_service->access()->checkAccess('edit_submissions_grades', '', $ref_id);

return $this->irss_wrapper_gui->getResourceCollectionGUI(
$feedback_file_manager->getStakeholder(),
Expand Down

0 comments on commit b979342

Please sign in to comment.