Access a node into a group without being group member and having a special role.
Posted by carsato on January 20, 2012 at 4:14pm
Hello everybody
I'm using OpenAtrium, I think it's 1.0, but not sure.
I need a user with special profile to access a node into a group without being group member. Is that possible?
In short my code gives groups and "my_content_type" a grant called "my_realm" with gid 1.
hook_node_grants() gives each user with "my_special_role" a grant called "my_realm" with gid 1.
As far as I know that should give access user to node, isn't it?
I added this code, but it's not working:
<?php
/**
* hook_node_grants()
*