CRM-12499 - CRM_Core_Permission_Base::translatePermission
[civicrm-core.git] / CRM / Core / Permission / DrupalBase.php
index 296915d0cb3f6f0908bbccf98bf6341b6d8fe2c1..c4bd8a3c1222730f2f38c9c04565523f3408d98c 100644 (file)
@@ -215,21 +215,6 @@ class CRM_Core_Permission_DrupalBase extends CRM_Core_Permission_Base {
     return NULL;
   }
 
-  /**
-   * given a permission string, check for access requirements
-   *
-   * @param string $str the permission to check
-   *
-   * @return boolean true if yes, else false
-   * @access public
-   */
-  function check($str, $contactID = NULL) {
-    if (function_exists('user_access')) {
-      return user_access($str) ? TRUE : FALSE;
-    }
-    return TRUE;
-  }
-
   function getContactEmails($uids) {
     if (empty($uids)) {
       return '';