From: Tim Otten Date: Fri, 8 Mar 2013 11:04:09 +0000 (-0500) Subject: CRM-11925 - Add comments to explain why D6 works with empty permission functions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dea6887201b0dd343c3c4f933342a051cdd1ac9d;p=civicrm-core.git CRM-11925 - Add comments to explain why D6 works with empty permission functions --- diff --git a/CRM/Core/Permission/Drupal6.php b/CRM/Core/Permission/Drupal6.php index 1aaa4adf20..63d703b950 100644 --- a/CRM/Core/Permission/Drupal6.php +++ b/CRM/Core/Permission/Drupal6.php @@ -149,12 +149,20 @@ class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase { return $_cache[$permissionName]; } + /** + * {@inheritDoc} + */ + public function isModulePermissionSupported() { + return TRUE; + } + /** * Remove all vestiges of permissions for the given module. * * Does nothing in Drupal 6. */ function uninstallPermissions($module) { + // D6 allows us to be really lazy... things get cleaned up when the admin form is next submitted... } /** @@ -163,6 +171,7 @@ class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase { * Does nothing in Drupal 6. */ function upgradePermissions($permissions) { + // D6 allows us to be really lazy... things get cleaned up when the admin form is next submitted... } /**