remove or give priority to hook_node_grants
I am developing a module to create "sub user types" inside OG. I have been able to modify hook_node_access_records using the "priority" so in certain cases I override OG access system. Now I need to "override" the hook_node_grants so In certain cases a user who should be able to see certain nodes don't see them; how can I achieve this? Thanks -- *La vida és com una taronja, que esperes a exprimir-la? *Si creus que l'educació és cara, prova la ignorància. *La vida és com una moneda, la pots gastar en el que vulguis però només una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient.
You no longer need to fiddle with priorities when overriding OG records - http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/og/modules/og_a.... There is currently no hook for adjusting grants. On Tue, Mar 31, 2009 at 7:26 AM, Lluís <enboig@gmail.com> wrote:
I am developing a module to create "sub user types" inside OG. I have been able to modify hook_node_access_records using the "priority" so in certain cases I override OG access system.
Now I need to "override" the hook_node_grants so In certain cases a user who should be able to see certain nodes don't see them; how can I achieve this?
Thanks
-- *La vida és com una taronja, que esperes a exprimir-la? *Si creus que l'educació és cara, prova la ignorància. *La vida és com una moneda, la pots gastar en el que vulguis però només una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient.
That is not resolving my problem. What I need inside a group is: - Content addressed to normal subscribers - Content for the theory teachers of the group - Content for the practical teachers of the group - ..... I have created a module which allows you to assign a "profession" to users inside a group. The user can choose using a profession to activate. The nodes created with a profession activates are only visible to those inside the group and having that profession active. I achieve this using nodeapi and giving my hook_node_access_records more priority than OG. My problem is that users with a profession active see also the "default" group content, which they shouldn't. This is because "hook_node_grants" is activated by my module and OG module. So my question is how to remove the "hook_node_grants" of OG? On Tue, Mar 31, 2009 at 2:09 PM, Moshe Weitzman <weitzman@tejasa.com> wrote:
You no longer need to fiddle with priorities when overriding OG records - http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/og/modules/og_a....
There is currently no hook for adjusting grants.
On Tue, Mar 31, 2009 at 7:26 AM, Lluís <enboig@gmail.com> wrote:
I am developing a module to create "sub user types" inside OG. I have been able to modify hook_node_access_records using the "priority" so in certain cases I override OG access system.
Now I need to "override" the hook_node_grants so In certain cases a user who should be able to see certain nodes don't see them; how can I achieve this?
Thanks
-- *La vida és com una taronja, que esperes a exprimir-la? *Si creus que l'educació és cara, prova la ignorància. *La vida és com una moneda, la pots gastar en el que vulguis però només una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient.
-- *La vida és com una taronja, que esperes a exprimir-la? *Si creus que l'educació és cara, prova la ignorància. *La vida és com una moneda, la pots gastar en el que vulguis però només una vegada. *Abans d'imprimir aquest missatge, pensa en el medi ambient.
participants (2)
-
Lluís -
Moshe Weitzman