Upgrade to OJS 3.1.1.4 - The current role does not have access to this operation

Hi,

Last week we upgraded an OJS server to:
| OS platform | Linux |
| PHP version | 7.1.20-1+ubuntu14.04.1+deb.sury.org+1 |
| Apache version | Apache/2.4.10 (Ubuntu) |
| Database driver | mysqli |
| Database server version | 5.5.61-0ubuntu0.14.04.1 |

Afterwards, we upgraded from OJS 2.54 to 3.1.1.4, following the provided instructions. The upgrade script resulted in success.

We have hosted 4 journals on this server.
But now, the administrator cannot upload a logo or a style sheet to the MAIN Site administration page. As soon as I try to upload I get:
The current role does not have access to this operation.
2018-10-01%2011_40_57-Settings

Can anybody help?

The administration of the individual journals seems to be working just fine. But this of course is done by the journal manager role… It looks as if the site admin has insufficient rights…

Thanks,
Peter

Hi,

Try adding the following to /lib/pkp/controllers/tab/settings/AdminSettingsTabHandler.inc.php (line 37)
$this->addRoleAssignment(ROLE_ID_SITE_ADMIN,
array(
‘showFileUploadForm’,
‘uploadFile’,
‘saveFile’,
‘deleteFile’,
‘fetchFile’
)
);

Thank you @haroldg,

That did the trick. Is this a bug that is going to be solved in a coming release?

Best,
Peter

Hi @pverberne,

Yes, it’s already been committed to git and will be included in the next release.

Regards,
Alec Smecher
Public Knowledge Project Team