Commit c9e807a3 authored by Dries's avatar Dries

- 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.
parent a286e9dd
......@@ -60,11 +60,11 @@ function node_overview($query) {
while ($node = db_fetch_object($result)) {
unset ($link);
$link[] = user_access($user, $node->type) ? "<A HREF=\"admin.php?mod=node&type=$node->type&op=edit&id=$node->nid\">edit content</A>" : "edit content";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=option&id=$node->nid\">edit options</A>" : "edit options";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=status&id=$node->nid\">edit status</A>" : "edit status";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=attribute&id=$node->nid\">edit attributes</A>" : "edit attributes";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=delete&id=$node->nid\">delete node</A>" : "delete node";
$link[] = "<A HREF=\"admin.php?mod=node&type=$node->type&op=edit&id=$node->nid\">edit content</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=option&id=$node->nid\">edit options</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=status&id=$node->nid\">edit status</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=attribute&id=$node->nid\">edit attributes</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=delete&id=$node->nid\">delete node</A>";
$bg = $color[$i++ % sizeof($color)];
......
......@@ -60,11 +60,11 @@ function node_overview($query) {
while ($node = db_fetch_object($result)) {
unset ($link);
$link[] = user_access($user, $node->type) ? "<A HREF=\"admin.php?mod=node&type=$node->type&op=edit&id=$node->nid\">edit content</A>" : "edit content";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=option&id=$node->nid\">edit options</A>" : "edit options";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=status&id=$node->nid\">edit status</A>" : "edit status";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=attribute&id=$node->nid\">edit attributes</A>" : "edit attributes";
$link[] = user_access($user, "node") ? "<A HREF=\"admin.php?mod=node&op=delete&id=$node->nid\">delete node</A>" : "delete node";
$link[] = "<A HREF=\"admin.php?mod=node&type=$node->type&op=edit&id=$node->nid\">edit content</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=option&id=$node->nid\">edit options</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=status&id=$node->nid\">edit status</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=attribute&id=$node->nid\">edit attributes</A>";
$link[] = "<A HREF=\"admin.php?mod=node&op=delete&id=$node->nid\">delete node</A>";
$bg = $color[$i++ % sizeof($color)];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment