mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-74749 mod_bigbluebuttonbn: Fix import button
This commit is contained in:
parent
952d9e9f18
commit
6b6803d46a
2 changed files with 11 additions and 0 deletions
|
@ -756,6 +756,9 @@ EOF;
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function can_import_recordings(): bool {
|
public function can_import_recordings(): bool {
|
||||||
|
if (!config::get('importrecordings_enabled')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if ($this->can_manage_recordings()) {
|
if ($this->can_manage_recordings()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,3 +110,11 @@ Feature: Manage and list recordings
|
||||||
And I select "Recordings from deleted activities" from the "sourcecourseid" singleselect
|
And I select "Recordings from deleted activities" from the "sourcecourseid" singleselect
|
||||||
And I should see "Recording 1"
|
And I should see "Recording 1"
|
||||||
And I should not see "Recording 2"
|
And I should not see "Recording 2"
|
||||||
|
|
||||||
|
@javascript
|
||||||
|
Scenario: I check that when I disable Import recording feature the import recording link button should not be shown.
|
||||||
|
When I log in as "admin"
|
||||||
|
And the following config values are set as admin:
|
||||||
|
| bigbluebuttonbn_importrecordings_enabled | 0 |
|
||||||
|
And I am on the "RoomRecordings1" "bigbluebuttonbn activity" page logged in as "admin"
|
||||||
|
Then "Import recording links" "button" should not be visible
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue