diff --git a/modules/node.module b/modules/node.module index 5d0706bb793..0fdd5f70183 100644 --- a/modules/node.module +++ b/modules/node.module @@ -60,11 +60,11 @@ function node_overview($query) { while ($node = db_fetch_object($result)) { unset ($link); - $link[] = user_access($user, $node->type) ? "type&op=edit&id=$node->nid\">edit content" : "edit content"; - $link[] = user_access($user, "node") ? "nid\">edit options" : "edit options"; - $link[] = user_access($user, "node") ? "nid\">edit status" : "edit status"; - $link[] = user_access($user, "node") ? "nid\">edit attributes" : "edit attributes"; - $link[] = user_access($user, "node") ? "nid\">delete node" : "delete node"; + $link[] = "type&op=edit&id=$node->nid\">edit content"; + $link[] = "nid\">edit options"; + $link[] = "nid\">edit status"; + $link[] = "nid\">edit attributes"; + $link[] = "nid\">delete node"; $bg = $color[$i++ % sizeof($color)]; diff --git a/modules/node/node.module b/modules/node/node.module index 5d0706bb793..0fdd5f70183 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -60,11 +60,11 @@ function node_overview($query) { while ($node = db_fetch_object($result)) { unset ($link); - $link[] = user_access($user, $node->type) ? "type&op=edit&id=$node->nid\">edit content" : "edit content"; - $link[] = user_access($user, "node") ? "nid\">edit options" : "edit options"; - $link[] = user_access($user, "node") ? "nid\">edit status" : "edit status"; - $link[] = user_access($user, "node") ? "nid\">edit attributes" : "edit attributes"; - $link[] = user_access($user, "node") ? "nid\">delete node" : "delete node"; + $link[] = "type&op=edit&id=$node->nid\">edit content"; + $link[] = "nid\">edit options"; + $link[] = "nid\">edit status"; + $link[] = "nid\">edit attributes"; + $link[] = "nid\">delete node"; $bg = $color[$i++ % sizeof($color)];