Steps to reproduce:
-
On a 14.4.5/13.10.5/14.4.6 XWiki Jetty instance, install PDF Viewer Macro Pro, 2.4. I tested on both Firefox 106.0.5 & Chrome 107.0
-
Add a standard user (Simple, default hidden pages setting) in a new Group - XWikiRegularUsersGroup
-
At wiki level, set these rights for the XWikiAdminGroup and leave empty for all the other groups:

-
At this point, give to the XWikiRegularUsersGroup on the Sandbox Page & Children level Edit rights.
-
With a user from the XWikiRegularUsersGroup edit Sandbox TestPage1, with no pre-existing PDF attached to the page (no matter the editor type, inline or WYSIWYG) and add the PDF Viewer Macro.
-
Click in the "Select or upload a PDF file" field
Expected result: a button with "Upload a file" under the "Select or upload a PDF file" field
Actual result: the "Upload a file" button does not appear

In the console, the Source map error: Error: request failed with status 404 Resource URL: null Source Map URL: suggestAttachments.min.js.map appears when inserting the PDF Viewer macro, then when first clicking in the Select or upload a PDF file field, the message JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim appears.
Also, giving View at wiki level for the group or any right, even Admin on the Sandbox Page & Children level to the group, does not help.