diff --git a/modules/media/ajax/FileUpload.php b/modules/media/ajax/FileUpload.php index df22de06ef7..dae1bab8cac 100644 --- a/modules/media/ajax/FileUpload.php +++ b/modules/media/ajax/FileUpload.php @@ -88,7 +88,7 @@ function uploadFile() $db = \NDB_Factory::singleton()->database(); $config = NDB_Config::singleton(); $user =& User::singleton(); - if (!$user->hasPermission('media_read')) { + if (!$user->hasPermission('media_write')) { showMediaError("Permission Denied", 403); exit; }