? .cvsignore ? 261258-node-save-fields-71-D6.patch ? 362256-poll-vote-32-D6.patch ? 721400-js-css-filenames-67-D6.patch ? 732064-load-lock-api-early-92-D6.patch ? 762434-form-build-1-D6.patch ? foo.sq3 ? log.txt ? modules.1 ? sdo-1035-lang-name-9.patch ? sdo-1035-locale_xss-20-D6.patch ? sdo-1035-locale_xss-23-D6.patch.txt ? sdo-1035-locale_xss-26-D6.patch.txt ? sdo-872-session-8.patch ? x.php ? sites/8888.127.0.0.1 ? sites/all/modules ? sites/all/themes ? sites/default/files ? sites/default/files2 ? sites/default/settings.php Index: modules/poll/poll.module =================================================================== RCS file: /cvs/drupal/drupal/modules/poll/poll.module,v retrieving revision 1.263.2.4 diff -u -p -r1.263.2.4 poll.module --- modules/poll/poll.module 14 Sep 2009 10:16:54 -0000 1.263.2.4 +++ modules/poll/poll.module 8 May 2010 02:01:42 -0000 @@ -294,8 +294,6 @@ function poll_more_choices_submit($form, } function _poll_choice_form($delta, $value = '', $votes = 0) { - $admin = user_access('administer nodes'); - $form = array( '#tree' => TRUE, ); @@ -308,17 +306,15 @@ function _poll_choice_form($delta, $valu '#default_value' => $value, '#parents' => array('choice', $delta, 'chtext'), ); - - if ($admin) { - $form['chvotes'] = array( - '#type' => 'textfield', - '#title' => t('Votes for choice @n', array('@n' => ($delta + 1))), - '#default_value' => $votes, - '#size' => 5, - '#maxlength' => 7, - '#parents' => array('choice', $delta, 'chvotes'), - ); - } + $form['chvotes'] = array( + '#type' => 'textfield', + '#title' => t('Votes for choice @n', array('@n' => ($delta + 1))), + '#default_value' => $votes, + '#size' => 5, + '#maxlength' => 7, + '#parents' => array('choice', $delta, 'chvotes'), + '#access' => user_access('administer nodes'), + ); return $form; }