Commit 65955453 authored by Dries's avatar Dries

- Patch #738990 by glipay: poll.module using administer nodes permission incorrectly.

parent 3fd692b3
......@@ -243,7 +243,7 @@ function poll_field_extra_fields() {
function poll_form($node, &$form_state) {
global $user;
$admin = user_access('administer nodes') || user_access('edit any poll content') || (user_access('edit own poll content') && $user->uid == $node->uid);
$admin = user_access('bypass node access') || user_access('edit any poll content') || (user_access('edit own poll content') && $user->uid == $node->uid);
$type = node_type_get_type($node);
......
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