Answers.Body: <p>So after doing some research, checking on the Drupal, Wordpress, and Joomla demos, it appears that Permissioning for individual reports indeed does NOT exist in the Joomla implementation.  Very disappointing.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-19T15:08:00.303Z
Answers.LastActivityDate: 2019-12-19T15:08:00.303Z
Answers.UserDisplayName: minbori
Answers.Body: <p>If you temporarily change the word Joomla in this line in the code to 'Joomla-temp' or something, does it then work as expected? This seems like an old restriction and maybe at one time Joomla didn't support it.</p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/blob/5.20.2/templates/CRM/Report/Form/Tabs/Instance.tpl#L81" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/5.20.2/templates/CRM/Report/Form/Tabs/Instance.tpl#L81</a></p>
  
  <pre><code>{if $config-&gt;userFramework neq 'Joomla'}
  </code></pre>
  
  <p>You may also have to do the same here but try just the above first (EDIT: as I look at this line of code it doesn't make any sense anyway - it's always true):</p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/blob/5.20.2/CRM/Report/Form/Instance.php#L122" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/5.20.2/CRM/Report/Form/Instance.php#L122</a></p>
  
  <pre><code>    if ($config-&gt;userFramework != 'Joomla' ||
        $config-&gt;userFramework != 'WordPress'
      ) {
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-20T08:52:01.703Z
Answers.Text: Thanks for the suggestion, Demerit, but it doesn't seem to work.  Adjusting the Instance.tpl does cause the "Permissions" selection dropdown to appear, but my testing shows the permission chosen there is simply ignored.  The HTML for the ACL Group selection also appears, but it's empty -- and it seems on purpose, as the Instance.php code removes it for both Joomla AND Wordpress.  So Drupal is, in fact, the only implementation that allows ACL Group permissioning in CiviReport.
Answers.UserDisplayName: minbori
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-20T08:52:05.217Z
Answers.Text: So I'm back where I started -- this isn't supported in Joomla.  And back to my original suggestions:  Is it possible to add Joomla-level CiviCRM permissions to use with the menu blocks? Or am I stuck using the existing CiviCRM Joomla permissions in a very hacky/kludgey way?
Answers.UserDisplayName: minbori
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-20T14:45:02.000Z
Answers.Text: Ok thanks for testing - there are probably more lines elsewhere that exclude Joomla. But it's not the Instance.php line - what I noted in my edit is that the line has faulty logic and so actually doesn't restrict any CMS. I made a PR to at least address that: https://github.com/civicrm/civicrm-core/pull/16122. I think the right full solution is to see where else Joomla is being excluded, but in the meantime it's reasonable to look for some alternate. It looks like Joomla lets you set menu permissions at Administer - Customize - Navigation, after adding the report to the menu.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-19T16:30:32.467Z
Answers.LastActivityDate: 2019-12-19T16:35:55.133Z
Answers.LastEditDate: 2019-12-19T16:35:55.133Z
Answers.UserDisplayName: Demerit
Body: <p>I wanted to create several reports that are limited to specific CiviCRM ACL roles.  But I can't, because when I view the "Access" tab for the report settings, there are no permission fields shown.</p>
  
  <p>According to the docs (<a href="https://docs.civicrm.org/user/en/latest/reporting/set-up/#define-report-settings" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/reporting/set-up/#define-report-settings</a>), I should see two fields "Permission" and "ACL Group/Role", but I do not have those on my screen. All other fields are present as shown in the docs. </p>
  
  <p>Have I missed a configuration setting somewhere?</p>
  
  <p>I'm using Joomla 3.9.13 and CiviCRM 5.18.2.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-04T19:12:35.990Z
Comments.Text: I can't reproduce on my Drupal version, I wonder if this is a limitation of the Joomla implementation?
Comments.UserDisplayName: Alan Dixon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-04T19:40:33.163Z
Comments.Text: have you checked your CMS permission? there have been new report permissions added in the recent past - in case you have upgraded and didn't spot that
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-05T12:59:26.050Z
Comments.Text: I have -- my Super User has every listed Joomla Civi-related permission set to "allowed".
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-20T08:59:12.417Z
Comments.Text: According to the Drupal, Wordpress, and Joomla demos:  Drupal has both Permissions and ACL Groups, Wordpress has only Permissions, and Joomla has neither.
Comments.UserDisplayName: minbori
Tags: <civireport><permissions>
Title: how to set permissions on individual CiviReports (permission options not shown!)?
ThreadText: # how to set permissions on individual CiviReports (permission options not shown!)?
  
  (Asked by: username_0 on 2019-12-04)
  
  I wanted to create several reports that are limited to specific CiviCRM ACL roles. But I can't, because when I view the "Access" tab for the report settings, there are no permission fields shown.
  
  According to the docs (<https://docs.civicrm.org/user/en/latest/reporting/set-up/#define-report-settings>), I should see two fields "Permission" and "ACL Group/Role", but I do not have those on my screen. All other fields are present as shown in the docs.
  
  Have I missed a configuration setting somewhere?
  
  I'm using Joomla 3.9.13 and CiviCRM 5.18.2.
  
  **Tags:** civireport, permissions
  
  > **Comments:**
  > **username_1**: I can't reproduce on my Drupal version, I wonder if this is a limitation of the Joomla implementation?  
  > **username_2**: have you checked your CMS permission? there have been new report permissions added in the recent past - in case you have upgraded and didn't spot that  
  > **username_0**: I have -- my Super User has every listed Joomla Civi-related permission set to "allowed".  
  > **username_0**: According to the Drupal, Wordpress, and Joomla demos:  Drupal has both Permissions and ACL Groups, Wordpress has only Permissions, and Joomla has neither.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2019-12-19. Score: 1
  
  So after doing some research, checking on the Drupal, Wordpress, and Joomla demos, it appears that Permissioning for individual reports indeed does NOT exist in the Joomla implementation. Very disappointing.
  
  
  ---
  
  ### Answer by username_3 on 2019-12-19. Score: 1
  
  If you temporarily change the word Joomla in this line in the code to 'Joomla-temp' or something, does it then work as expected? This seems like an old restriction and maybe at one time Joomla didn't support it.
  https://github.com/civicrm/civicrm-core/blob/5.20.2/templates/CRM/Report/Form/Tabs/Instance.tpl#L81
  {if $config->userFramework neq 'Joomla'}
  
  You may also have to do the same here but try just the above first (EDIT: as I look at this line of code it doesn't make any sense anyway - it's always true):
  https://github.com/civicrm/civicrm-core/blob/5.20.2/CRM/Report/Form/Instance.php#L122
      if ($config->userFramework != 'Joomla' ||
        $config->userFramework != 'WordPress'
      ) {
  
  > **Comments:**
  > **username_0**: Thanks for the suggestion, username_3, but it doesn't seem to work.  Adjusting the Instance.tpl does cause the "Permissions" selection dropdown to appear, but my testing shows the permission chosen there is simply ignored.  The HTML for the ACL Group selection also appears, but it's empty -- and it seems on purpose, as the Instance.php code removes it for both Joomla AND Wordpress.  So Drupal is, in fact, the only implementation that allows ACL Group permissioning in CiviReport.  
  > **username_0**: So I'm back where I started -- this isn't supported in Joomla.  And back to my original suggestions:  Is it possible to add Joomla-level CiviCRM permissions to use with the menu blocks? Or am I stuck using the existing CiviCRM Joomla permissions in a very hacky/kludgey way?  
  > **username_3**: Ok thanks for testing - there are probably more lines elsewhere that exclude Joomla. But it's not the Instance.php line - what I noted in my edit is that the line has faulty logic and so actually doesn't restrict any CMS. I made a PR to at least address that: https://github.com/civicrm/civicrm-core/pull/16122. I think the right full solution is to see where else Joomla is being excluded, but in the meantime it's reasonable to look for some alternate. It looks like Joomla lets you set menu permissions at Administer - Customize - Navigation, after adding the report to the menu.  
  
  ---
  
  