PluginProbe
Depicter — Popup & Slider Builder / 1.9.2
Depicter — Popup & Slider Builder v1.9.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
← All changes | app/src/Controllers/Ajax/FileUploaderController.php +0 -7 trunk1.9.2 View file →
@@ -7,15 +7,8 @@
7 7 {
8 8 public function uploadFile(RequestInterface $request, $view) {
9 9
10 10 try{
11 -
12 - if ( !current_user_can('upload_files')) {
13 - return \Depicter::json([
14 - 'errors' => [ __('You do not have permission to upload files.', 'depicter') ]
15 - ])->withStatus(400 );
16 - }
17 -
18 11 $files = $request->files();
19 12
20 13 if ( empty( $files ) ) {
21 14 return \Depicter::json([