You are here

function acl_has_users in ACL 6

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

Determines if an acl has some assigned users

1 call to acl_has_users()
acl_node_access_records in ./acl.module
Implementation of hook_node_access_records().

File

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

Code

function acl_has_users($acl_id) {
  return db_result(db_query("SELECT COUNT(uid) FROM {acl_user} WHERE acl_id = %d", $acl_id));
}