Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
22da88c4
Unverified
Commit
22da88c4
authored
6 years ago
by
Eileen McNaughton
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #14109 from mattwire/refactor_inboundemailshared
REF Use shared function to check inbound email permissions
parents
dfcc1e08
426fe3c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CRM/Activity/BAO/Activity.php
+1
-1
1 addition, 1 deletion
CRM/Activity/BAO/Activity.php
CRM/Activity/Selector/Activity.php
+1
-3
1 addition, 3 deletions
CRM/Activity/Selector/Activity.php
CRM/Case/BAO/Case.php
+1
-3
1 addition, 3 deletions
CRM/Case/BAO/Case.php
with
3 additions
and
7 deletions
CRM/Activity/BAO/Activity.php
+
1
−
1
View file @
22da88c4
...
...
@@ -2414,7 +2414,7 @@ INNER JOIN civicrm_option_group grp ON (grp.id = option_group_id AND grp.name =
}
/**
* Checks if user has permissions to edit inbound e-mails, either bsic info
* Checks if user has permissions to edit inbound e-mails, either b
a
sic info
* or both basic information and content.
*
* @return bool
...
...
This diff is collapsed.
Click to expand it.
CRM/Activity/Selector/Activity.php
+
1
−
3
View file @
22da88c4
...
...
@@ -181,9 +181,7 @@ class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements C
$url
=
'civicrm/contact/view/activity'
;
$qsView
=
"atype=
{
$activityTypeId
}
&action=view&reset=1&id=%%id%%&cid=%%cid%%&context=%%cxt%%
{
$extraParams
}
"
;
if
(
CRM_Core_Permission
::
check
(
'edit inbound email basic information'
)
||
CRM_Core_Permission
::
check
(
'edit inbound email basic information and content'
)
)
{
if
(
CRM_Activity_BAO_Activity
::
checkEditInboundEmailsPermissions
())
{
$showDelete
=
$showUpdate
=
TRUE
;
$qsUpdate
=
"atype=
{
$activityTypeId
}
&action=update&reset=1&id=%%id%%&cid=%%cid%%&context=%%cxt%%
{
$extraParams
}
"
;
}
...
...
This diff is collapsed.
Click to expand it.
CRM/Case/BAO/Case.php
+
1
−
3
View file @
22da88c4
...
...
@@ -2750,9 +2750,7 @@ WHERE id IN (' . implode(',', $copiedActivityIds) . ')';
//allow edit operation.
$allowEditNames
=
array
(
'Open Case'
);
if
(
CRM_Core_Permission
::
check
(
'edit inbound email basic information'
)
||
CRM_Core_Permission
::
check
(
'edit inbound email basic information and content'
)
)
{
if
(
CRM_Activity_BAO_Activity
::
checkEditInboundEmailsPermissions
())
{
$allowEditNames
[]
=
'Inbound Email'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment