Commit 207463db authored by Christian Wach's avatar Christian Wach

Remove redundant caps filter (added documentation)

parent 6a8c0366
...@@ -153,7 +153,8 @@ class CiviCRM_Permissions_Sync { ...@@ -153,7 +153,8 @@ class CiviCRM_Permissions_Sync {
* *
* The standard CiviCRM install misses out a few capabilities which many * The standard CiviCRM install misses out a few capabilities which many
* installs need to function as expected. They are added here, but may * installs need to function as expected. They are added here, but may
* themselves be filtered if desired. * themselves be filtered by hooking in to `civicrm_min_capabilities` and
* `init` with a priority greater than those used by this plugin.
* *
* @since 1.0 * @since 1.0
* *
...@@ -167,16 +168,6 @@ class CiviCRM_Permissions_Sync { ...@@ -167,16 +168,6 @@ class CiviCRM_Permissions_Sync {
$capabilities[$capability] = 1; $capabilities[$capability] = 1;
} }
/**
* Allow capabilities to be filtered further.
*
* @since 1.0
*
* @param array $capabilities The minimum capabilities.
* @return array $capabilities The modified capabilities.
*/
$capabilities = apply_filters( 'civicrm_permissions_sync_caps_min', $capabilities );
// --< // --<
return $capabilities; return $capabilities;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment