Hi, is there a way to enable only certain roles to subscribe to a content type?

I mean, I'd like only administrator receive notifications when users edit own "nodeprofile" node, not all users of my community! :)

I'd like to know if it's a feature in the to-do, else I'll write it ;)

Regards!

Comments

thepanz’s picture

Status: Active » Needs work
StatusFileSize
new4.9 KB

Hi, this is a alpha patch that enable content-type subscribing permissions. (I added also an .install file, for settings clearing )

Maybe I'm missing something else, but "it simply works" :)

There is an undocumented $op in hook_notifications() called 'access', have I to add checks also there?

Regards!

thepanz’s picture

StatusFileSize
new4.17 KB

Sorry, I left in some debug messages!
New patch

jose reyero’s picture

Version: 5.x-1.0-beta1 » 6.x-2.x-dev

The idea sounds good. But about the implementation it looks like making the options yet more complex, while we are trying to go the other way, making them simpler.

Why don't you just replace the 'subscribe to content' permission for multiple 'subscribe to xxx' for each content type?. That combined with the 'subscribe to content type' permission would allow enough flexibility IMHO and would be an acceptable solution.

mstef’s picture

On a very related note, if a user were to subscribe to a certain content type, does the notifications modules check if the user has read permissions to the newly created nodes before notifying? From a few quick tests it seems that it does, but I thought I'd ask just to make sure..

Thanks

jose reyero’s picture

Status: Needs work » Closed (won't fix)

About permissions, yes, node view permissions are checked.

No more features for 2.x branch. They will be welcomed for 4.x