Commit fd56a3df authored by Kevin Cristiano's avatar Kevin Cristiano 🌎

update caps to include new caps added in 4.7

parent 038adc9f
......@@ -20,6 +20,7 @@ function tc_reset_wp_user_capabilities() {
// Minimum capabilities (CiviCRM permissions) arrays
$default_min_capabilities = array(
'read' => 1,
'access_civimail_subscribe_unsubscribe_pages' => 1,
'access_all_custom_data' => 1,
'access_uploaded_files' => 1,
......@@ -32,6 +33,7 @@ function tc_reset_wp_user_capabilities() {
'sign_civicrm_petition' => 1,
'view_public_civimail_content' => 1,
'access_ajax_api' => 1,
'view_my_invoices' => 1,
);
// allow other plugins to filter
......@@ -126,7 +128,23 @@ function tc_reset_wp_user_capabilities() {
'view_event_participants' => 1,
'view_own_manual_batches' => 1,
'view_public_civimail_content' => 1,
'administer_payment_processors' => 1,
'administer_private_reports' => 1,
'close_all_manual_batches' => 1,
'close_own_manual_batches' => 1,
'edit_api_keys' => 1,
'edit_message_templates' => 1,
'edit_my_contact' => 1,
'edit_own_api_keys' => 1,
'force_merge_duplicate_contacts' => 1,
'import_sql_datasource' => 1,
'manage_event_profiles' => 1,
'manage_tags' => 1,
'reopen_all_manual_batches' => 1,
'reopen_own_manual_batches' => 1,
'view_my_contact' => 1,
'view_my_invoices' => 1,
'view_report_sql' => 1,
);
$admin_capabilities = apply_filters( 'civicrm_admin_capabilities', $default_admin_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