After upgrade 3.1.4- The current role does not have access to this operation

After upgrade to OJS 3.1.4 weve a problem with Site Admin role. Our previous account admin cant:

  • uploade Site logo
  • uploade Site style sheet
  • modify users accounts

We ve note: The current role does not have access to this operation

I checked the permissions in the database – everything is ok:

user_group_id=1

What could have caused this

Hi @karwas,

Does the Administrator also have the Journal Manager role? Only a Journal Manager can make the changes you noted above. I’m not sure which version you upgraded from, but user roles and permissions in OJS 3 vary a bit from OJS 2.

Thanks,
Amanda Stevens
Public Knowledge Project Team

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’
)
);

Hi all,

@haroldg’s suggested fix is equivalent (but different) to the fix that has already been merged in for the next release. That fix is pkp/pkp-lib#4024 Allow admins to upload files in the admin settings tabs · pkp/pkp-lib@9e35b17 · GitHub.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks! It works!
Best regard Peter