You are here

view_profiles_perms.module in View profiles permissions 8

Restricts viewing user profiles based on user roles.

File

view_profiles_perms.module
View source
<?php

/**
 * @file
 * Restricts viewing user profiles based on user roles.
 */

/**
 * Implements hook_entity_type_alter().
 */
function view_profiles_perms_entity_type_alter(array &$entity_types) {
  $entity_types['user']
    ->setHandlerClass('access', 'Drupal\\view_profiles_perms\\ViewProfilesPermsAccessHandler');
}