Access to Campaign Reports
pelicani - October 27, 2006 - 14:51
| Project: | CitizenSpeak |
| Version: | HEAD |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
It seems that the only person that can review the reports for any given campaign is the user who submits the campaign.
Is there a way to give access to reports using the access control built into drupal?
Or at least provide access to multiple people.
Thanks in advance.
regards,
michael

#1
Here is a quick hack to provide access to all campaign reporting for any registered user...
citizenspeak.module
alter user access to reports
function citizenspeak_menu
line 74 : 'access' => ($node->uid == $user->uid) && user_access('collect contact information'),
remove user validation from the check
What I'd really like to do is set this option in the admin section, to display the reporting tab for all campaigns.
Another option, or additional option, could be within the campaign itself to restrict or allow access to the report.
Has anyone tried altering the code to do something similar?
peace,
michael