Merge branch 'MDL-74749-400' of https://github.com/junpataleta/moodle into MOODLE_400_STABLE

This commit is contained in:
Jun Pataleta
2022-09-07 06:40:21 +08:00
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -756,6 +756,9 @@ EOF;
* @return bool
*/
public function can_import_recordings(): bool {
if (!config::get('importrecordings_enabled')) {
return false;
}
if ($this->can_manage_recordings()) {
return true;
}
@@ -110,3 +110,10 @@ Feature: Manage and list recordings
And I select "Recordings from deleted activities" from the "sourcecourseid" singleselect
And I should see "Recording 1"
And I should not see "Recording 2"
Scenario: I check that when I disable Import recording feature the import recording link button should not be shown
Given I log in as "admin"
And the following config values are set as admin:
| bigbluebuttonbn_importrecordings_enabled | 0 |
When I am on the "RoomRecordings1" "bigbluebuttonbn activity" page logged in as "admin"
Then I should not see "Import recording links"