dev/core#1517 - Permission error on event info page for anonymous users
authorJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 10 Jan 2020 04:06:15 +0000 (09:36 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 10 Jan 2020 04:06:15 +0000 (09:36 +0530)
CRM/Event/Page/EventInfo.php

index c2410b7670fe86984430a9fbfb167bb08537a46e..664105fabea172ef438892b604804465ee88174f 100644 (file)
@@ -338,7 +338,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page {
     }
     $this->assign('location', $values['location']);
 
-    if (CRM_Core_Permission::check('access CiviEvent')) {
+    if (CRM_Core_Permission::check(['access CiviEvent', 'edit all events'])) {
       $enableCart = Civi::settings()->get('enable_cart');
       $this->assign('manageEventLinks', CRM_Event_Page_ManageEvent::tabs($enableCart));
     }