diff --git a/layouts/v7/modules/Vtiger/AddCommentFooter.tpl b/layouts/v7/modules/Vtiger/AddCommentFooter.tpl index 24387c8b5a95d9c8921fe9a8364717def5e0fac4..9986e67a4d0992dd41a7cef82933ba2127e4c868 100644 --- a/layouts/v7/modules/Vtiger/AddCommentFooter.tpl +++ b/layouts/v7/modules/Vtiger/AddCommentFooter.tpl @@ -13,7 +13,9 @@ <div class="modal-footer"> <div class="row-fluid"> <div class="col-xs-6"> - {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE_NAME)} + {if $FIELD_MODEL->getProfileReadWritePermission()} + {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE_NAME)} + {/if} </div> <div class="col-xs-6"> <div> diff --git a/layouts/v7/modules/Vtiger/RecentComments.tpl b/layouts/v7/modules/Vtiger/RecentComments.tpl index a12f69e17f7c8aafba90529c2e9fea5d1e58f895..5ec4bdb7f9d45364753eaf73a1eb446b94339c4f 100644 --- a/layouts/v7/modules/Vtiger/RecentComments.tpl +++ b/layouts/v7/modules/Vtiger/RecentComments.tpl @@ -38,9 +38,11 @@ <button class="btn btn-success btn-sm detailViewSaveComment" type="button" data-mode="add">{vtranslate('LBL_POST', $MODULE_NAME)}</button> </div> </div> - <div class="col-xs-6 pull-left"> - {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE_NAME) MODULE="ModComments"} - </div> + {if $FIELD_MODEL->getProfileReadWritePermission()} + <div class="col-xs-6 pull-left"> + {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE_NAME) MODULE="ModComments"} + </div> + {/if} </div> </div> {/if} diff --git a/layouts/v7/modules/Vtiger/ShowAllComments.tpl b/layouts/v7/modules/Vtiger/ShowAllComments.tpl index ec07af50a88fa12b4b4f7a303fddf8712559c2b7..3cab0f50d5311d2f193b35cbc59fa07c3580beb3 100644 --- a/layouts/v7/modules/Vtiger/ShowAllComments.tpl +++ b/layouts/v7/modules/Vtiger/ShowAllComments.tpl @@ -30,9 +30,11 @@ <button class="btn btn-success btn-sm saveComment" type="button" data-mode="add"><strong>{vtranslate('LBL_POST', $MODULE_NAME)}</strong></button> </div> </div> - <div class="col-xs-8 pull-left"> - {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE_NAME) MODULE="ModComments"} - </div> + {if $FIELD_MODEL->getProfileReadWritePermission()} + <div class="col-xs-8 pull-left"> + {include file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE_NAME) MODULE="ModComments"} + </div> + {/if} </div> </div> </div>