node_access_grants

function node_access_grants

node_access_grants($op, AccountInterface $account)

Fetches an array of permission IDs granted to the given user ID.

The implementation here provides only the universal "all" grant. A node access module should implement hook_node_grants() to provide a grant list for the user.

After the default grants have been loaded, we allow modules to alter the grants array by reference. This hook allows for complex business logic to be applied when integrating multiple node access modules.

Parameters

string $op: The operation that the user is trying to perform.

登录查看完整内容