[OJS 3.5.0.5] File access error in Draft Files for users not included in original Discussion

Hello,

We encountered an issue with file access permissions in the Draft Files section.

Steps to Reproduce:

  1. In the Copyediting phase, an Editor and Copyeditor A started a Discussion thread, where the Editor attached four files (1 Word document, 3 images).

  2. Copyeditor A uploaded those files directly from the Discussion thread into Draft Files. Both the Editor and Copyeditor A could download them without any issues.

  3. A second participant, Copyeditor B, was assigned to the Copyediting phase but was not added to the Discussion thread (by design, to keep the initial editor discussion private).

  4. While Copyeditor B could see the files listed in Draft Files, attempting to download them resulted in the following error:

Content translation: “With your current role, you do not have access to this operation."

Workaround & Additional Notes:

  • Deleting the files from Draft Files and re-uploading them directly from a local computer resolved the issue, allowing Copyeditor B to download them.

  • We tested this across other roles (e.g., Editor and Author) and confirmed the same behavior occurs: any participant not included in the original Discussion thread receives the access error when trying to download those files from Draft Files. This happens regardless of whether the user is added as a stage participant before or after the files are moved to Draft Files.

Hi @andrea.colliv,

I’d be curious to know what your role settings are there:
https://docs.pkp.sfu.ca/learning-ojs/journal-managers/en/users#permissions-roles

Presumably, the Copyeditor has access to the Copyediting stage? But, do you find yourself in this instance moving between Copyediting and Production where the Copyeditor is required for the discussion? If so, I wonder if it is worth giving them access to both stages (if you haven’t tried this already…). Also, when it comes to the log messages, the console log, while helpful in some instances, might be complemented well by checking the PHP error logs for error messages found there around the time of this behaviour.

-Roger
PKP Team