You are here

function gdpr_collected_user_data_access in General Data Protection Regulation 7

Implements an access callback to a user's GDPR data collection page.

Parameters

\stdClass $user: The user entity.

Return value

bool Whether or not the current user has access.

1 string reference to 'gdpr_collected_user_data_access'
gdpr_menu in ./gdpr.module
Implements hook_menu().

File

./gdpr.module, line 291
Contains hook implementations and shared functions.

Code

function gdpr_collected_user_data_access(\stdClass $user) {
  return $GLOBALS['user']->uid == $user->uid;
}