Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CiviCRM Permissions Sync
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
plugins
CiviCRM Permissions Sync
Commits
fd56a3df
Verified
Commit
fd56a3df
authored
Nov 11, 2017
by
Kevin Cristiano
🌎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update caps to include new caps added in 4.7
parent
038adc9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
wp-civi-caps.php
wp-civi-caps.php
+19
-1
No files found.
wp-civi-caps.php
View file @
fd56a3df
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment