From 85cae0d01ab9eebc2d9464e2bf0e63ed63ae9a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 25 Jan 2008 16:19:13 +0000 Subject: #204411 by chx, slightly modified: heal a possible MySQL import error when the anonymous user becomes broken --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 222164351..017623280 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -542,7 +542,7 @@ function comment_form_alter(&$form, $form_state, $form_id) { COMMENT_ANONYMOUS_MUST_CONTACT => t('Anonymous posters must leave their contact information')), '#description' => t('This option is enabled when anonymous users have permission to post comments on the permissions page.', array('@url' => url('admin/user/permissions', array('fragment' => 'module-comment')))), ); - if (!user_access('post comments', user_load(array('uid' => 0)))) { + if (!user_access('post comments', drupal_anonymous_user())) { $form['comment']['comment_anonymous']['#disabled'] = TRUE; } $form['comment']['comment_subject_field'] = array( -- cgit v1.2.3