FIX Write right on document
This commit is contained in:
parent
91fc78ac9c
commit
80995c34b5
@ -160,7 +160,7 @@ if ($object->id)
|
|||||||
|
|
||||||
$modulepart = 'tax';
|
$modulepart = 'tax';
|
||||||
$permission = $user->rights->tax->charges->creer;
|
$permission = $user->rights->tax->charges->creer;
|
||||||
$permtoedit = $user->rights->fournisseur->facture->creer;
|
$permtoedit = $user->rights->tax->charges->creer;
|
||||||
$param = '&id='.$object->id;
|
$param = '&id='.$object->id;
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -145,7 +145,7 @@ if ($object->id)
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
$permission = $user->rights->tax->charges->creer;
|
$permission = $user->rights->tax->charges->creer;
|
||||||
$permtoedit = $user->rights->fournisseur->facture->creer;
|
$permtoedit = $user->rights->tax->charges->creer;
|
||||||
$param = '&id='.$object->id;
|
$param = '&id='.$object->id;
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -168,7 +168,7 @@ if ($object->id)
|
|||||||
$permission = $user->rights->societe->contact->creer;
|
$permission = $user->rights->societe->contact->creer;
|
||||||
$permtoedit = $user->rights->societe->contact->creer;
|
$permtoedit = $user->rights->societe->contact->creer;
|
||||||
$param = '&id='.$object->id;
|
$param = '&id='.$object->id;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
} else {
|
} else {
|
||||||
print $langs->trans("ErrorUnknown");
|
print $langs->trans("ErrorUnknown");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -182,7 +182,7 @@ if ($object->id)
|
|||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
$modulepart = 'don';
|
$modulepart = 'don';
|
||||||
$permission = $user->rights->don->lire;
|
$permission = $user->rights->don->creer;
|
||||||
$permtoedit = $user->rights->don->creer;
|
$permtoedit = $user->rights->don->creer;
|
||||||
$param = '&id='.$object->id;
|
$param = '&id='.$object->id;
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user