no transcode for reporting
This commit is contained in:
		
							parent
							
								
									7149af7df9
								
							
						
					
					
						commit
						c4ae68fb47
					
				| @ -126,7 +126,7 @@ class TranscodeImage extends Extension | |||||||
|     { |     { | ||||||
|         global $user, $config; |         global $user, $config; | ||||||
| 
 | 
 | ||||||
|         if ($user->can(Permissions::EDIT_FILES)) { |         if ($user->can(Permissions::EDIT_FILES) && $event->context != "report") { | ||||||
|             $engine = $config->get_string(TranscodeConfig::ENGINE); |             $engine = $config->get_string(TranscodeConfig::ENGINE); | ||||||
|             if ($this->can_convert_mime($engine, $event->image->get_mime())) { |             if ($this->can_convert_mime($engine, $event->image->get_mime())) { | ||||||
|                 $options = $this->get_supported_output_mimes($engine, $event->image->get_mime()); |                 $options = $this->get_supported_output_mimes($engine, $event->image->get_mime()); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user