View source
<?php
function commons_poll_user_default_permissions() {
$permissions = array();
$permissions['cancel own vote'] = array(
'name' => 'cancel own vote',
'roles' => array(
'0' => 'authenticated user',
),
);
$permissions['create poll content'] = array(
'name' => 'create poll content',
'roles' => array(
'0' => 'authenticated user',
),
);
$permissions['delete any poll content'] = array(
'name' => 'delete any poll content',
'roles' => array(
'0' => 'community manager',
),
);
$permissions['delete own poll content'] = array(
'name' => 'delete own poll content',
'roles' => array(
'0' => 'authenticated user',
),
);
$permissions['edit any poll content'] = array(
'name' => 'edit any poll content',
'roles' => array(
'0' => 'community manager',
),
);
$permissions['edit field_poll_body'] = array(
'name' => 'edit field_poll_body',
'roles' => array(
'0' => 'authenticated user',
),
);
$permissions['edit own poll content'] = array(
'name' => 'edit own poll content',
'roles' => array(
'0' => 'authenticated user',
),
);
$permissions['inspect all votes'] = array(
'name' => 'inspect all votes',
'roles' => array(
'0' => 'authenticated user',
),
);
$permissions['view field_poll_body'] = array(
'name' => 'view field_poll_body',
'roles' => array(
'0' => 'anonymous user',
'1' => 'authenticated user',
),
);
$permissions['vote on polls'] = array(
'name' => 'vote on polls',
'roles' => array(
'0' => 'authenticated user',
),
);
return $permissions;
}