Does someone know what function within Organic Groups I can use to check if a user (the signed in user) as access to a given node? Do you have an example?



The same function you should always use in any context: node_access('view', $node);

Modules are expected to use node access hooks to implement access control, so this function will consider all of the modules that may grant or remove access to the given $node object.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.