Update myobject_card.php
This commit is contained in:
parent
865b7cbe92
commit
2ce5c89a14
@ -118,7 +118,7 @@ if (empty($reshook))
|
|||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
$permissiontoadd = $user->rights->mymodule->write;
|
$permissiontoadd = $user->rights->mymodule->write;
|
||||||
$permissiontodelete = $user->rights->mymodule->delete;
|
$permissiontodelete = $user->rights->mymodule->delete || ($permissiontoadd && $object->status == 0);
|
||||||
$backurlforlist = dol_buildpath('/mymodule/myobject_list.php',1);
|
$backurlforlist = dol_buildpath('/mymodule/myobject_list.php',1);
|
||||||
if (empty($backtopage)) {
|
if (empty($backtopage)) {
|
||||||
if (empty($id)) $backtopage = $backurlforlist;
|
if (empty($id)) $backtopage = $backurlforlist;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user