Hi,
We have an article at this page: https://veterinaryevidence.org/index.php/ve/article/view/653
The Supplementary Material galley link works, and is formed like:
https://veterinaryevidence.org/index.php/ve/article/download/653/887?inline=1
When I click the Full-Text galley link, that will open in a new tab. Towards the bottom, you can see the Supplementary Material Link, which is in the format:
https://veterinaryevidence.org/index.php/ve/$$$call$$$/api/file/file-api/download-file?submissionFileId=5641&submissionId=653&stageId=5
This link works for me, and some of my other colleagues. However it doesn’t work for others. When they click the link they get the following error:
{"status":false,"content":"The current role does not have access to this operation.","elementId":"0","events":null}
We are using OJS version 3.3.0.13
This is an odd one. Is there any way for the full-text galley link to use the working URL instead of this broken one?
Many thanks in advance,
Anthony
Ant_Forshaw:
{"status":false,"content":"The current role does not have access to this operation.","elementId":"0","events":null}
Hi @Ant_Forshaw ,
Initially, I would recommend you to start troubleshooting which roles are being returned when either works or fails to return the supplementary file. There is an approach to debug it on this thread:
Looking at the FileUploadWizardHandler.inc.php in OJS 3.3.0-8, I don’t see anything that can cause the issue and can’t reproduce it.
The best would be to debug this locally, e.g., install OJS on a local computer from the recent backup.
First I would check what roles are returned when the error occurs. For this, log in as a user who cannot upload a file, and reproduce the steps, but before pressing the continue button (after which the error occurs) add the line
error_log(print_r($userRoles, tr…
Secondly, it seems that you are using a highly customized theme and HTML display. I would recommend to clone your production OJS and, on the dev install, change to the default theme and check whether the errors still shows up.
Best,
Israel