Hello,

In my configuration, I am not using cronjobs to send the mails, and when subscriptions checks the node_access permissions, the result is wrong.

I tried both the "standard" line and then, I tried using the line of the new development version:

$nodeaccess = isset($nobj) ? node_access('view', $nobj) : TRUE;

(adapting what needed to be adapted).

The result is always wrong, and I don't know exactly what the problem is. The user sending out the messages is an Admin (me), and the users all have the permission to access the content (I use TAC, but it does not restrict the access to this content type).

Tell me what I could try to solve the problem (for the moment I have disabled node access check).

Have a nice day,

Felix.

Comments

felixsmile’s picture

http://drupal.org/node/132456 might be the same issue, just for a different version?

diodata’s picture

Version: 5.x-1.9 »

I think it might be. I am seeing the same thing. I'm using 5.x-2.x-dev and therefore not using cron. It looks like the user who is creating the node/post does NOT need "administer nodes" privilege but users to receive any associated subscriptions emails must have that privilege.

Any work-around for now, such as disabling a permission check somewhere?

- John

felixsmile’s picture

As a workaround, I set

$nodeaccess = TRUE;

That's all I found out until now.

Felix.

salvis’s picture

Yes, it is indeed still the same issue. Thanks for posting that link!

We hope to have a fix next week...

salvis’s picture

Status: Active » Closed (fixed)

Subscriptions 2.0 has been rewritten from the ground up — I'm closing this issue because it refers to obsolete code that was removed.

If you'd like to take a first look and help with testing, then get it from the link on http://drupal.org/project/subscriptions, but do heed the warnings!

Please open new issues for feedback about the new version 2.0!