diff --git a/htdocs/fichinter/document.php b/htdocs/fichinter/document.php
index 32495a8b9ad..51e97cb7bfe 100644
--- a/htdocs/fichinter/document.php
+++ b/htdocs/fichinter/document.php
@@ -129,7 +129,7 @@ if ($object->id) {
if (isModEnabled('project')) {
$langs->load("projects");
$morehtmlref .= '
';
- if ($usercancreate && 0) {
+ if ($permissiontoadd && 0) {
$morehtmlref .= img_picto($langs->trans("Project"), 'project', 'class="pictofixedwidth"');
if ($action != 'classify') {
$morehtmlref .= ''.img_edit($langs->transnoentitiesnoconv('SetProject')).' ';
@@ -164,7 +164,6 @@ if ($object->id) {
print dol_get_fiche_end();
$modulepart = 'ficheinter';
- $permissiontoadd = $user->rights->ficheinter->creer;
$permtoedit = $user->rights->ficheinter->creer;
$param = '&id='.$object->id;
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';