diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-25 16:19:13 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-25 16:19:13 +0000 |
commit | 85cae0d01ab9eebc2d9464e2bf0e63ed63ae9a13 (patch) | |
tree | 5b05591e21a84cca2a48bac49eaa55293f67ade8 /modules/comment/comment.module | |
parent | a94ef1d6ebd94e2171073a0309bf26d2938074d8 (diff) | |
download | brdo-85cae0d01ab9eebc2d9464e2bf0e63ed63ae9a13.tar.gz brdo-85cae0d01ab9eebc2d9464e2bf0e63ed63ae9a13.tar.bz2 |
#204411 by chx, slightly modified: heal a possible MySQL import error when the anonymous user becomes broken
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
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 <a href="@url">permissions page</a>.', 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( |