You are here

function acl_remove_user in ACL 8

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

Remove the specified UID from an ACL.

1 call to acl_remove_user()
AclTest::testNodeAclSingleUserAddRemove in src/Tests/AclTest.php
Includes acl_add_user, acl_remove_user, acl_has_users, acl_get_id_by_name, acl_has_user, acl_get_uids

File

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

Code

function acl_remove_user($acl_id, $uid) {
  \Drupal::database()
    ->delete('acl_user')
    ->condition('acl_id', $acl_id)
    ->condition('uid', $uid)
    ->execute();
}