From c9e807a347c8352354dde4a9bd7be5bce8f32cc3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 6 Jun 2001 18:57:13 +0000 Subject: [PATCH] - Fixed permission problem in node.module. Kristjan: this should fix the problem you reported on the mailing-list. We aim at providing a better solution in the long though. --- modules/node.module | 10 +++++----- modules/node/node.module | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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)];