Deny access to 'node' and 'node/add' URLs for non admin users
This commit is contained in:
parent
86b7e754b6
commit
0ac7a5d805
4 changed files with 13 additions and 11 deletions
|
@ -726,6 +726,8 @@ function stormexpense_storminvoice_auto_add($node, $invoice_nid = NULL) {
|
|||
|
||||
$count = count($new_invoice->items);
|
||||
|
||||
$new_invoice->items[$count] = new StdClass;
|
||||
|
||||
$new_invoice->items[$count]->description = $node->title;
|
||||
$new_invoice->items[$count]->amount = $node->amount;
|
||||
// Tax percent uses the values set on the expense.
|
||||
|
|
Reference in a new issue