0

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?

Thanks

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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