Skip to content

Commit

Permalink
Merge branch '78241-401-tiny-recordrtc-fix-availability-conditions' of
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 committed Aug 29, 2023
2 parents 527e300 + c79c417 commit 5f681d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/editor/tiny/plugins/recordrtc/classes/plugininfo.php
Expand Up @@ -49,10 +49,8 @@ public static function is_enabled(
// 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 {
Expand Down

0 comments on commit 5f681d2

Please sign in to comment.