summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-02 04:45:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-02 04:45:28 +0000
commit0da45208f450ef39593dfab104daa7ec39049fdc (patch)
treed71ca9c3358b3aa6c87704779f4975d9ee8d26ff /modules
parent74215ea2bb44385611ce0a2ff64e4f769b6add6d (diff)
downloadbrdo-0da45208f450ef39593dfab104daa7ec39049fdc.tar.gz
brdo-0da45208f450ef39593dfab104daa7ec39049fdc.tar.bz2
#484060 by EclipseGc: Remove duplicate access checking from node_add().
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.pages.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index 748df2c2c..86aaf9f8e 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -60,7 +60,7 @@ function node_add($type) {
$types = node_type_get_types();
$type = isset($type) ? str_replace('-', '_', $type) : NULL;
// If a node type has been specified, validate its existence.
- if (isset($types[$type]) && node_access('create', $type)) {
+ if (isset($types[$type])) {
// Initialize settings:
$node = (object)array('uid' => $user->uid, 'name' => (isset($user->name) ? $user->name : ''), 'type' => $type, 'language' => '');