Skip to content

Commit

Permalink
fixing typo/bug permission should be write not read for uploading.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisadmin committed May 30, 2024
1 parent 1b5ff78 commit 2ff7fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/media/ajax/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2ff7fd1

Please sign in to comment.