You are here

function permissions_by_term_user_update in Permissions by Term 8

Same name and namespace in other branches
  1. 8.2 permissions_by_term.module \permissions_by_term_user_update()

Implements hook_user_update().

File

./permissions_by_term.module, line 351
Allows access to terms in a vocabulary to be limited by user or role.

Code

function permissions_by_term_user_update($user) {
  if (\Drupal::currentUser()
    ->hasPermission('administer permissions')) {
    Cache::invalidateTags([
      'search_index:node_search',
    ]);
  }
}