og access

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
carsato's picture

Access a node into a group without being group member and having a special role.

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()
*

Read more
Subscribe with RSS Syndicate content