i am trying to set up SimpleAds module so that one of my users can view nodes created by advertisements that are added. I have checked all the necessary permissions in the Home » Administration » People screen but it is still giving the user the "Access Denied" error
any feedback on a fix would be appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | permission-issue-1795174-2.patch | 578 bytes | yvesvanlaer |
Comments
Comment #1
binaryweb commentedComment #2
Alexpi commentedChange this line 152 in simpleads.module:
to this:
Comment #3
minnur commentedComment #4
liliplanet commentedperfect, thank you! users can now see their ad ..
Comment #5
minnur commentedadded to dev.
Comment #6
nor4a commentedThe same issue with 2x.
Now the problem is in the includes/node.inc file - in the "simpleads_node_access" function. Incorrect permission naming.
Change the line:
To the line:
if (isset ($node->type) && $node->type == 'simpleads' && $op == 'view' && !user_access('access advertisement node', $account)) {Comment #7
yvesvanlaer commentedI created a patch for this. I think It is about time that this will be committed :).
Comment #9
minnur commentedFixed in DEV.
Comment #12
minnur commented