From d3ad8c0e46be0acec1aa5feb9b30065c99b83a59 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 11 Feb 2019 20:43:23 +0000 Subject: [PATCH] dev/core/issues/714, Inline edit should be disabled if user doesn't have edit group permission --- templates/CRM/Group/Form/Search.tpl | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/templates/CRM/Group/Form/Search.tpl b/templates/CRM/Group/Form/Search.tpl index d9da5ed296..f73fd4b10e 100644 --- a/templates/CRM/Group/Form/Search.tpl +++ b/templates/CRM/Group/Form/Search.tpl @@ -78,15 +78,18 @@
{ts}Update Smart Group Counts{/ts} {help id="update_smart_groups"}
+{if call_user_func(array('CRM_Core_Permission','check'), 'edit groups')} + {assign var='editableClass' value='crm-editable'} +{/if} - + - + - + {if $showOrgInfo} {/if} @@ -228,16 +231,16 @@ $.each( response.data, function( i, val ) { appendHTML += ''; if ( val.is_parent ) { - appendHTML += ''; + appendHTML += ''; } else { - appendHTML += ''; + appendHTML += ''; } appendHTML += '"; appendHTML += ""; - appendHTML += '"; + appendHTML += '"; appendHTML += ""; - appendHTML += '"; + appendHTML += '"; if (showOrgInfo) { appendHTML += ""; } -- 2.25.1
{ts}Name{/ts}{ts}Name{/ts} {ts}Count{/ts} {ts}Created By{/ts}{ts}Description{/ts}{ts}Description{/ts} {ts}Group Type{/ts}{ts}Visibility{/ts}{ts}Visibility{/ts}{ts}Organization{/ts}
' + '{/literal}
{literal}' + val.title + '
' + '{/literal}
{literal}' + val.title + '
' + val.title + '' + val.title + '' + val.count + "" + val.created_by + "' + (val.description || '') + "' + (val.description || '') + "" + val.group_type + "' + val.visibility + "' + val.visibility + "" + val.org_info + "