Needs review
Project:
Activism
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2010 at 21:56 UTC
Updated:
30 Mar 2011 at 21:21 UTC
Hi,
I made some modifications to give ability to this module to show signup report for a campaign to anonymous users:
To enable it edit file activism.module:
Add before line:
'administer activism',
line:
'view activism campaign report',
Add before line:
if ($op == 'view') {
lines:
if (user_access('view activism campaign report', $account) && $op == 'activism tab access') {
return TRUE;
};
Now you can enable viewing of campaign report in Permissions page.
Comments
Comment #1
hlan commentedThanks for this hacking codes. But now anonymous can even see the call to action tab and change anything in there. Is there any way to fix it?
Regards
Hlan
Comment #2
janeks commentedYep - that's was my fault.
Here is the fix:
Edit last line in:
to
and in previous fix created line:
change to: