You are here

function acl_has_user in ACL 6

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

Determines if an acl has a specific assigned user

File

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

Code

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