summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node.php2
-rw-r--r--updates/2.00-to-x.xx.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/node.php b/node.php
index 6bbeed207..09e9622e1 100644
--- a/node.php
+++ b/node.php
@@ -7,7 +7,7 @@ page_header();
function node_render($node) {
global $user, $id, $cid, $op, $moderate, $pid, $edit, $theme, $mode, $order, $threshold, $PHP_SELF;
- if (user_access($node, "view content")) {
+ if (user_access($user, "view content")) {
if ($node->comment) {
switch($op) {
diff --git a/updates/2.00-to-x.xx.sql b/updates/2.00-to-x.xx.sql
index b43d97ead..220082efd 100644
--- a/updates/2.00-to-x.xx.sql
+++ b/updates/2.00-to-x.xx.sql
@@ -277,4 +277,4 @@ CREATE TABLE role (
ALTER TABLE users ADD role varchar(32) DEFAULT '' NOT NULL;
ALTER TABLE users DROP access;
-UPDATE users SET role = 'registered user';
+UPDATE users SET role = 'authenticated user';