fix: cannot edit propal note
This commit is contained in:
parent
6419854b96
commit
0f1b63ec9b
@ -64,6 +64,7 @@ if (!empty($conf->global->MAIN_AUTO_TIMESTAMP_IN_PRIVATE_NOTES)) {
|
||||
// Special cases
|
||||
if ($module == 'propal') {
|
||||
$permission = $user->hasRight("propale", "creer");
|
||||
var_dump($user->hasRight("propale", "creer"));
|
||||
} elseif ($module == 'supplier_proposal') {
|
||||
$permission = $user->hasRight("supplier_proposal", "creer");
|
||||
} elseif ($module == 'fichinter') {
|
||||
|
||||
@ -995,7 +995,7 @@ class MyObject extends CommonObject
|
||||
$langs->load("mymodule@mymodule");
|
||||
|
||||
if (empty($conf->global->MYMODULE_MYOBJECT_ADDON)) {
|
||||
$conf->global->MYMODULE_MYOBJECT_ADDON = 'mod_myobject_standard';
|
||||
$conf->global->MYMODULE_MYOBJECT_ADDON = 'mod_dolipadbaes_standard';
|
||||
}
|
||||
|
||||
if (!empty($conf->global->MYMODULE_MYOBJECT_ADDON)) {
|
||||
|
||||
@ -686,6 +686,7 @@ class User extends CommonObject
|
||||
'shipping' => 'expedition',
|
||||
'task' => 'task@projet',
|
||||
'fichinter' => 'ficheinter',
|
||||
'propale' => 'propal',
|
||||
'inventory' => 'stock',
|
||||
'invoice' => 'facture',
|
||||
'invoice_supplier' => 'fournisseur',
|
||||
@ -718,8 +719,6 @@ class User extends CommonObject
|
||||
$permlevel1 = $tmp[0];
|
||||
}
|
||||
|
||||
//var_dump($module);
|
||||
//var_dump($this->rights->$module);
|
||||
if (!in_array($module, $conf->modules)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user