mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-78241 tiny_recordrtc: fix availability conditions
This commit is contained in:
parent
cccc00954d
commit
57bdedcbe7
@ -49,10 +49,8 @@ class plugininfo extends plugin implements plugin_with_buttons, plugin_with_menu
|
||||
// Disabled if:
|
||||
// - Not logged in or guest.
|
||||
// - Files are not allowed.
|
||||
// - Only URL are supported.
|
||||
$canhavefiles = !empty($options['maxfiles']);
|
||||
$canhaveexternalfiles = !empty($options['return_types']) && ($options['return_types'] & FILE_EXTERNAL);
|
||||
return isloggedin() && !isguestuser() && $canhavefiles && $canhaveexternalfiles;
|
||||
return isloggedin() && !isguestuser() && $canhavefiles;
|
||||
}
|
||||
|
||||
public static function get_available_buttons(): array {
|
||||
|
Loading…
x
Reference in New Issue
Block a user