diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index 175486dcca0..c220e1f320d 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -2520,9 +2520,14 @@ if ($action == 'create')
}
// Close as accepted/refused
- if ($object->statut == Propal::STATUS_VALIDATED && $usercanclose) {
- print 'id.'&action=closeas'.(empty($conf->global->MAIN_JUMP_TAG) ? '' : '#close').'"';
- print '>'.$langs->trans('SetAcceptedRefused').'';
+ if ($object->statut == Propal::STATUS_VALIDATED) {
+ if ($usercanclose) {
+ print 'id.'&action=closeas'.(empty($conf->global->MAIN_JUMP_TAG) ? '' : '#close').'"';
+ print '>'.$langs->trans('SetAcceptedRefused').'';
+ } else {
+ print ''.$langs->trans('SetAcceptedRefused').'';
+ }
}
// Clone
diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index fcd8f067e01..e5700fca445 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -114,7 +114,11 @@ if (!$sortorder) $sortorder = 'DESC';
$permissiontoread = $user->rights->propal->lire;
$permissiontoadd = $user->rights->propal->write;
$permissiontodelete = $user->rights->propal->supprimer;
-$permissiontoclose = $user->rights->propal->cloturer;
+if (!empty($conf->global->MAIN_USE_ADVANCED_PERMS)) {
+ $permissiontoclose = $user->rights->propale->propal_advance->close;
+} else {
+ $permissiontoclose = $user->rights->propal->creer;
+}
// Security check
$module = 'propal';
diff --git a/htdocs/core/modules/modPropale.class.php b/htdocs/core/modules/modPropale.class.php
index c0ffa6f0811..9b40a236511 100644
--- a/htdocs/core/modules/modPropale.class.php
+++ b/htdocs/core/modules/modPropale.class.php
@@ -157,7 +157,8 @@ class modPropale extends DolibarrModules
$this->rights[$r][1] = 'Close commercial proposals'; // libelle de la permission
$this->rights[$r][2] = 'd'; // type de la permission (deprecie a ce jour)
$this->rights[$r][3] = 0; // La permission est-elle une permission par defaut
- $this->rights[$r][4] = 'cloturer';
+ $this->rights[$r][4] = 'propal_advance';
+ $this->rights[$r][5] = 'close';
$r++;
$this->rights[$r][0] = 27; // id de la permission