Merge branch '78241-401-tiny-recordrtc-fix-availability-conditions' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_401_STABLE

This commit is contained in:
Huong Nguyen 2023-08-29 10:53:38 +07:00
commit 5f681d2ae2
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -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 {