From: Pradeep Nayak Date: Mon, 11 Feb 2019 20:43:23 +0000 (+0000) Subject: dev/core/issues/714, Inline edit should be disabled if user doesn't have edit group... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d3ad8c0e46be0acec1aa5feb9b30065c99b83a59;p=civicrm-core.git dev/core/issues/714, Inline edit should be disabled if user doesn't have edit group permission --- 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 += ""; }
{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 + "