projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ab4947f
)
dev/core#1230 Permission nuancing, fix another place where merge duplicate contacts...
author
eileen
<emcnaughton@wikimedia.org>
Fri, 6 Sep 2019 02:09:42 +0000
(14:09 +1200)
committer
eileen
<emcnaughton@wikimedia.org>
Fri, 6 Sep 2019 02:11:09 +0000
(14:11 +1200)
It seems fine for Rule.create & delete to require administer CiviCRM but merge duplicate contacts should be enough for get
CRM/Core/Permission.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Permission.php
b/CRM/Core/Permission.php
index d5818d93ffe477245fb83aae03dd84f10c59044e..6623bfd1f38e03024addabe21dd79a836ab8a999 100644
(file)
--- a/
CRM/Core/Permission.php
+++ b/
CRM/Core/Permission.php
@@
-1184,9
+1184,11
@@
class CRM_Core_Permission {
$permissions['exception'] = [
'default' => ['merge duplicate contacts'],
];
+
$permissions['job'] = [
'process_batch_merge' => ['merge duplicate contacts'],
];
+ $permissions['rule_group']['get'] = [['merge duplicate contacts', 'administer CiviCRM']];
// Loc block is only used for events
$permissions['loc_block'] = $permissions['event'];