Deny access to 'node' and 'node/add' URLs for non admin users

This commit is contained in:
Manuel Cillero 2017-09-19 20:52:59 +02:00
parent 86b7e754b6
commit 0ac7a5d805
4 changed files with 13 additions and 11 deletions

View file

@ -644,7 +644,7 @@ function stormevent_storm_dashboard_links($type) {
'icon' => 'stormcalendar-item',
'path' => 'calendar',
'params' => array(),
'access_arguments' => 'create stormevent content',
'access_arguments' => 'Storm event: access',
'node_type' => 'stormevent',
'add_type' => 'stormevent',
'map' => array(),

View file

@ -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.