Update myobject_card.php
This commit is contained in:
parent
66f17ac422
commit
f4dd8a4e50
@ -118,7 +118,7 @@ if (empty($reshook))
|
||||
$error=0;
|
||||
|
||||
$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);
|
||||
if (empty($backtopage)) {
|
||||
if (empty($id)) $backtopage = $backurlforlist;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user