Add permissions for delete polls and delete own polls

heyrocker - May 30, 2009 - 15:42
Project:Advanced Poll
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This patch adds to hook_perm() and hook_access() to allow users to either delete all polls or delete their own polls. Gave it a quick run through the pertinent possibilities and seems to be working fine, but would like another set of eyes on it since it is an access control issue.

AttachmentSize
delete_permissions.patch1.17 KB
 
 

Drupal is a registered trademark of Dries Buytaert.