You are here

function acl_get_uids in ACL 8

Same name and namespace in other branches
  1. 5 acl.module \acl_get_uids()
  2. 6 acl.module \acl_get_uids()
  3. 7 acl.module \acl_get_uids()

Get the uids of an ACL.

1 call to acl_get_uids()
acl_node_access_explain in ./acl.module
Implements hook_node_access_explain().

File

./acl.module, line 295
An API module providing by-user access control lists.

Code

function acl_get_uids($acl_id) {
  $uids = \Drupal::database()
    ->query("SELECT uid FROM {acl_user} WHERE acl_id = :acl_id", [
    'acl_id' => $acl_id,
  ])
    ->fetchCol();
  return $uids;
}