Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 4.7.19
-
Fix Version/s: None
-
Component/s: CiviReport
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
The user guide mentions access permissions for individual reports based on either civicrm permissions or ACL group/role. For wordpress only one of these options is shown and for joomla neither of them is shown - for both built in reports and custom reports.
Report access permissions are quite important. Can the report permissions be made consistent with the user guide and across CMSs.
See below for a few more details.
For Joomla
Neither of the above two options appears. In instance.tpl/instance.tpl.php it seems that they are specifically not displayed for joomla:
{if $config->userFramework neq 'Joomla'} <tr class="crm-report-instanceForm-form-block-permission"> <td class="report-label" width="20%">{$form.permission.label} {help id="id-report_perms" file="CRM/Report/Form/Tabs/Settings.hlp"}</td> <td>{$form.permission.html|crmAddClass:huge}</td> </tr> <tr class="crm-report-instanceForm-form-block-role"> <td class="report-label" width="20%">{$form.grouprole.label}</td> <td>{$form.grouprole.html|crmAddClass:huge}</td> </tr> {/if}
<?php if ($this->_tpl_vars['config']->userFramework != 'Joomla'): ?> <tr class="crm-report-instanceForm-form-block-permission"> <td class="report-label" width="20%"><?php echo $this->_tpl_vars['form']['permission']['label']; ?> <?php echo smarty_function_help(array('id' => "id-report_perms",'file' => "CRM/Report/Form/Tabs/Settings.hlp"), $this);?> </td> <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['permission']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'huge') : smarty_modifier_crmAddClass($_tmp, 'huge')); ?> </td> </tr> <tr class="crm-report-instanceForm-form-block-role"> <td class="report-label" width="20%"><?php echo $this->_tpl_vars['form']['grouprole']['label']; ?> </td> <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['grouprole']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'huge') : smarty_modifier_crmAddClass($_tmp, 'huge')); ?> </td> </tr> <?php endif; ?>
This is seen on new installations and the demo site.
Removing the above IF statement causes the permissions option to appear (permissions functionality untested) but the ACL options are still not shown.
For Wordpress
The ACL group/role options are not shown on new installations and the demo site.