Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
justinfreeman (Agileware)
Core
Commits
7a2d0c81
Commit
7a2d0c81
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #813 from dlobo/CRM-12646
CRM-12646
parents
748caefe
87177cd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Contact/Page/View/CustomData.php
+3
-3
3 additions, 3 deletions
CRM/Contact/Page/View/CustomData.php
with
3 additions
and
3 deletions
CRM/Contact/Page/View/CustomData.php
+
3
−
3
View file @
7a2d0c81
...
...
@@ -100,9 +100,9 @@ class CRM_Contact_Page_View_CustomData extends CRM_Core_Page {
$session
->
pushUserContext
(
CRM_Utils_System
::
url
(
$doneURL
,
'action=browse&selectedChild=custom_'
.
$this
->
_groupId
),
FALSE
);
// get permission detail view or edit
$permUser
=
CRM_Core_Permission
::
g
et
P
er
mission
();
$editCustomData
=
(
CRM_Co
re_Permission
::
VIEW
==
$permUser
)
?
0
:
1
;
// use a comtact id specific function which gives us much b
et
t
er
granularity
// CRM-12646
$editCustomData
=
CRM_Co
ntact_BAO_Contact_Permission
::
allow
(
$this
->
_contactId
,
CRM_Core_Permission
::
EDIT
)
;
$this
->
assign
(
'editCustomData'
,
$editCustomData
);
//allow to edit own customdata CRM-5518
...
...
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