Answers.Body: <p>I ran in to this on an inherited site. It fixed itself once I removed the permission for "access CiviEvent" (which i assume had been erroneously given by previous developers)</p>
  
  <p>Once removed the other permissions worked fine.</p>
  
  <p>Maybe this counts as a bug. Will raise up a level.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-24T20:14:44.683Z
Answers.Text: This worked for me too on Drupal. Specifically, in the CMS permission "CiviEvent: Access CiviEvent" for anonymous users.
Answers.UserDisplayName: Harold Shinsato
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-25T18:35:36.133Z
Answers.Text: Thx Harold. StackExchange works best if you Up vote tickets that are useful to you.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-13T00:53:35.267Z
Answers.LastActivityDate: 2018-06-13T00:53:35.267Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>I've confirmed this bug and reported at <a href="https://lab.civicrm.org/dev/core/issues/1517" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/issues/1517</a></p>
  
  <p>PR <a href="https://github.com/civicrm/civicrm-core/pull/16266" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/16266</a> should fix the problem.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-10T04:10:35.303Z
Answers.LastActivityDate: 2020-01-10T04:10:35.303Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>After updating to 4.7.20, when the Event Info Page is accessed, it generates the following error, "API permission check failed for Event/get call; insufficient permission: require access CiviCRM and access CiviEvent and view event info". If I roll the system back to 4.7.18 it works. Any suggestions on a fix or work-around are much appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-14T23:02:01.537Z
Comments.Text: After updating to 4.7.22, I'm still receiving the following error: "API permission check failed for Event/get call; insufficient permission: require access CiviCRM and access CiviEvent and view event info"  when I try to access Event Info. Any suggestion for a fix/work-around would be appreciated. Currently, the only option I have is to roll back to civiCRM 4.7.18.
Comments.UserDisplayName: CSDweb
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-15T01:35:20.083Z
Comments.Text: It may not be a valid work-a-around, but I've discovered a way to run 4.7.22 without getting the API permission error when trying to view Event Info from the front-end. I changed the ACL, 'CiviCRM: access CiviCRM' permissions for 'Public' users from the default, 'Inherited' to 'Allowed'.
Comments.UserDisplayName: CSDweb
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-14T22:26:46.357Z
Comments.Text: Hmm - if you had said this only for 4.7.19 i would have said https://github.com/civicrm/civicrm-core/pull/10325 was the fix. but that is in 4.7.20 afaik - can  you check the 4.7.20 code you had and confirm if that fix was in there. that said, may be entirely unrelated. just been applying this to a number of 4.7.19 sites hence on top of my mind
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-14T22:27:37.977Z
Comments.Text: this was related jira - https://issues.civicrm.org/jira/browse/CRM-20549
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-16T01:12:16.377Z
Comments.Text: Thank you for the suggestion, but it didn't resolve the issue. I compared the file with the one on githubusercontent.com, but couldn't see any changes, so I replaced my event.php with the one there. No change, still getting the "API permission check failed for Event/get call; insufficient permission: require access CiviCRM and access CiviEvent and view event info" error message.
Comments.UserDisplayName: CSDweb
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-24T19:40:02.223Z
Comments.Text: I'm getting this exact same issue which occurred on my Drupal install after upgrading, and it blocks all event access from users not logged in. I was on 4.7, and just updated to 5.7.2 hoping it would fix it. No luck. I have no such ACL to fix this. I'm panicking as we need to get an event live and have never had this issue before and I'd rather not downgrade to 4.7.18.
Comments.UserDisplayName: Harold Shinsato
Tags: <civievent><api><permissions>
Title: API permission check failed: CiviEvents Fails after update to 4.7.19 and 4.7.20
ThreadText: # API permission check failed: CiviEvents Fails after update to 4.7.19 and 4.7.20
  
  (Asked by: username_0 on 2017-06-14)
  
  After updating to 4.7.20, when the Event Info Page is accessed, it generates the following error, "API permission check failed for Event/get call; insufficient permission: require access CiviCRM and access CiviEvent and view event info". If I roll the system back to 4.7.18 it works. Any suggestions on a fix or work-around are much appreciated.
  
  **Tags:** civievent, api, permissions
  
  > **Comments:**
  > **username_1**: Hmm - if you had said this only for 4.7.19 i would have said https://github.com/civicrm/civicrm-core/pull/10325 was the fix. but that is in 4.7.20 afaik - can  you check the 4.7.20 code you had and confirm if that fix was in there. that said, may be entirely unrelated. just been applying this to a number of 4.7.19 sites hence on top of my mind  
  > **username_1**: this was related jira - https://issues.civicrm.org/jira/browse/CRM-20549  
  > **username_0**: Thank you for the suggestion, but it didn't resolve the issue. I compared the file with the one on githubusercontent.com, but couldn't see any changes, so I replaced my event.php with the one there. No change, still getting the "API permission check failed for Event/get call; insufficient permission: require access CiviCRM and access CiviEvent and view event info" error message.  
  > **username_0**: After updating to 4.7.22, I'm still receiving the following error: "API permission check failed for Event/get call; insufficient permission: require access CiviCRM and access CiviEvent and view event info"  when I try to access Event Info. Any suggestion for a fix/work-around would be appreciated. Currently, the only option I have is to roll back to civiCRM 4.7.18.  
  > **username_0**: It may not be a valid work-a-around, but I've discovered a way to run 4.7.22 without getting the API permission error when trying to view Event Info from the front-end. I changed the ACL, 'CiviCRM: access CiviCRM' permissions for 'Public' users from the default, 'Inherited' to 'Allowed'.  
  > **username_2**: I'm getting this exact same issue which occurred on my Drupal install after upgrading, and it blocks all event access from users not logged in. I was on 4.7, and just updated to 5.7.2 hoping it would fix it. No luck. I have no such ACL to fix this. I'm panicking as we need to get an event live and have never had this issue before and I'd rather not downgrade to 4.7.18.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-06-13. Score: 3
  
  I ran in to this on an inherited site. It fixed itself once I removed the permission for "access CiviEvent" (which i assume had been erroneously given by previous developers)
  
  Once removed the other permissions worked fine.
  
  Maybe this counts as a bug. Will raise up a level.
  
  > **Comments:**
  > **username_2**: This worked for me too on Drupal. Specifically, in the CMS permission "CiviEvent: Access CiviEvent" for anonymous users.  
  > **username_1**: Thx Harold. StackExchange works best if you Up vote tickets that are useful to you.  
  
  ---
  
  ### Answer by username_3 on 2020-01-10. Score: 1
  
  I've confirmed this bug and reported at <https://lab.civicrm.org/dev/core/issues/1517>
  
  PR <https://github.com/civicrm/civicrm-core/pull/16266> should fix the problem.
  
  
  ---
  
  