Error when generating a new odt file for a task (ErrorForbidden): "Access denied. You try to access to a page, area or feature of a disabled module or without being in an authenticated session or that is not allowed to your user."

When generating a new ODT file for a task, I saw the following error in version 14.0.0.0:

Access denied.
You try to access to a page, area or feature of a disabled module or without being in an authenticated session or that is not allowed to your user.

I fixed this on line 2644 of the files.lib.php file by replacing this:

$accessallowed = checkUserAccessToObject($user, array(‘projet_task’), $tmptask->id, ‘projet&project’, ‘’, ‘’, ‘rowid’, ‘’);

by the following syntax:

$accessallowed = checkUserAccessToObject($user, array(‘project_task’), $tmptask->id, ‘projet&project’, ‘’, ‘’, ‘rowid’, ‘’);

Sorry if this is the inappropriate place to discuss, however, I believe it’s a tip that can help people with low programming knowledge like me.

If anyone knows how, please include this fix in some developer’s to-do list.

(ps. and sorry for my bad english kkk)

o/

Hello,

Normally it is already corrected in V14.0.2