Currently users who are not administrators cannot use any polls. There are 4 menu router items that have the following:
'access arguments' => array('show poll'),
However there is no permission of "show poll".
For my purposes I added a permission and altered each access argument like this:
/**
* hook_perm implementation
*/
function makemeeting_permission() {
return array(
'access all polls' => array(
'title' => t("Access all makemeeting polls"),
'restrict access' => TRUE,
),
'access own polls' => array(
'title' => t("Access Own polls"),
),
'show makemeeting poll' => array(
'title' => t("Show Makemeeting polls"),
),
);
}
Then altered the menu router items like this:
'access arguments' => array('show makemeeting poll'),
Comments
Comment #1
SebCorbin commentedWouldn't it be better to rename it all to "view makemeeting poll"?
Also, thanks for highlighting this!
Comment #2
SebCorbin commentedPatch attached, committed to 7.x-1.x-dev