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
|
@ -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(),
|
||||
|
|
|
@ -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