[support] Select user with permissions for each node, but where roles or group is not usable
Davide Michel 'ZioBudda' Morelli
michel at ziobudda.net
Tue Jan 8 09:41:33 UTC 2008
Hi, I have read the other thread, but my problem is different.
I have my content type "AB" with some informations (say a "download file
possibility") that will be avaible only to the users that have buy the
access to this informations. My the idea is to call a e-commerce, ask if
the user have buy the access and if "yes" permit to the user to access
to the informations.
I have thinked this way: in a hook_nodeapi() where $op = "view" verify
that the user can access to that content (via ecommerce): if yes I
change the $node->body with other info reserved for who buy the content,
otherwise I change the $node->body with an info about how to buy the
content.
Is this the correct way ? Are there better solutions ?
M.
--
Michel 'ZioBudda' Morelli michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel at ziobuddalabs.it
JABBER: michel at gmail.com
More information about the support
mailing list