diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 4cb99d6395b..20feee7b04f 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1115,7 +1115,6 @@ else if ($action == 'update_extras')
$object->array_options[$key]=$_POST[$key];
}
}
-
// Actions on extra fields (by external module or standard code)
// FIXME le hook fait double emploi avec le trigger !!
$hookmanager->initHooks(array('propaldao'));
@@ -1858,7 +1857,7 @@ else
print '
| attribute_required[$key])) print ' class="fieldrequired"';
print '>'.$label.' | ';
- if ($action == 'edit_extras')
+ if ($action == 'edit_extras' && $user->rights->propal->creer)
{
print $extrafields->showInputField($key,$value);
}
@@ -1872,7 +1871,7 @@ else
if(count($extrafields->attribute_label) > 0) {
- if ($action == 'edit_extras')
+ if ($action == 'edit_extras' && $user->rights->propal->creer)
{
print ' |
| ';
print '';
@@ -1880,8 +1879,11 @@ else
print ' |
';
}
- else {
- print ' | '.img_picto('','edit').' Modifier les valeurs |
';
+ else {
+ if ($object->statut == 0 && $user->rights->propal->creer)
+ {
+ print ' | '.img_picto('','edit').' '.$langs->trans('Modify').' |
';
+ }
}
}
}