| Línea 113... | Línea 113... | 
          
            | 113 |         $canviewallformats = roles::has_capability_in_course(
 | 113 |         $canviewallformats = roles::has_capability_in_course(
 | 
          
            | 114 |             $this->recording->get('courseid'), 'mod/bigbluebuttonbn:viewallrecordingformats');
 | 114 |             $this->recording->get('courseid'), 'mod/bigbluebuttonbn:viewallrecordingformats');
 | 
          
            | 115 |         $issafeformat = false;
 | 115 |         $issafeformat = false;
 | 
          
            | 116 |         // Now check the list of safe formats.
 | 116 |         // Now check the list of safe formats.
 | 
          
            | 117 |         if ($safeformats = config::get('recording_safe_formats')) {
 | 117 |         if ($safeformats = config::get('recording_safe_formats')) {
 | 
          
            | 118 |             $safeformatarray = str_getcsv($safeformats);
 | 118 |             $safeformatarray = str_getcsv($safeformats, escape: '\\');
 | 
          
            | 119 |             $issafeformat = in_array($playback['type'], $safeformatarray);
 | 119 |             $issafeformat = in_array($playback['type'], $safeformatarray);
 | 
          
            | 120 |         }
 | 120 |         }
 | 
          
            | 121 |         return ($canmanagerecordings && $canviewallformats) || $issafeformat;
 | 121 |         return ($canmanagerecordings && $canviewallformats) || $issafeformat;
 | 
          
            | 122 |     }
 | 122 |     }
 | 
          
            | 123 | }
 | 123 | }
 |