From 29ca91467688f1081ab3767f0a7900ce6ce8d05b Mon Sep 17 00:00:00 2001 From: Jacob Embree Date: Fri, 19 Jan 2018 21:10:36 -0500 Subject: [PATCH] Use node_access() for node/add/% access_callback --- src/modules/node/node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/node/node.js b/src/modules/node/node.js index b00d04df..d4eaa47a 100644 --- a/src/modules/node/node.js +++ b/src/modules/node/node.js @@ -148,6 +148,8 @@ function node_menu() { title_arguments: [2], page_callback: 'node_add_page_by_type', page_arguments: [2], + access_callback: 'node_access', + access_arguments: ['create', 2], options: { reloadPage: true } }, 'node/%': {