You are here

function gdpr_consent_languages_access in GDPR Consent 7

Access control callback.

Parameters

string $perm: Permission name.

Return value

bool Returns info if user has access or not.

1 string reference to 'gdpr_consent_languages_access'
gdpr_consent_menu in ./gdpr_consent.module
Implements hook_menu().

File

./gdpr_consent.module, line 1076
Module file for GDPR Consent.

Code

function gdpr_consent_languages_access($perm) {
  if (!module_exists('locale')) {
    return FALSE;
  }
  if (!user_access($perm)) {
    return FALSE;
  }
  return TRUE;
}