Skip to content

Commit

Permalink
Revert "Make sure teachers can't upload videos into arbitrary series …
Browse files Browse the repository at this point in the history
…in single-upload"
  • Loading branch information
ferishili authored Mar 18, 2024
1 parent bf56dc3 commit 0dea382
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions addvideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@
require_once($CFG->dirroot . '/repository/lib.php');

$courseid = required_param('courseid', PARAM_INT);
if ($courseid == $SITE->id) {
$series = optional_param('series', null, PARAM_ALPHANUMEXT);
} else {
$series = null;
}
$series = optional_param('series', null, PARAM_ALPHANUMEXT);
$ocinstanceid = optional_param('ocinstanceid', settings_api::get_default_ocinstance()->id, PARAM_INT);

$baseurlparams = [
Expand Down

0 comments on commit 0dea382

Please sign in to comment.