CRM-12499 - CRM_Core_Permission_Base::translatePermission
Add helper function translatePermission which translates an expression like
"administer CiviCRM", "cms:view user account", or "drupal:access user
profiles" into something understood by native CMS.
Use translatePermission as part of check() in D6, D7, WP.
Use placeholder permssions ALWAYS_ALLOW_PERMISSION and
ALWAYS_DENY_PERMISSION for select corner cases.
----------------------------------------
* CRM-12499: Allow users with 'access user profiles' to access $userRecordUrl
http://issues.civicrm.org/jira/browse/CRM-12499