Merge pull request #22185 from eileenmcnaughton/smarty11
[civicrm-core.git] / Civi / API / Subscriber / PermissionCheck.php
index bc2f18af6adbf880c98427db836b3d3b49ca06f4..9441800733ce01cd88b1c83877ebd66ee74217ff 100644 (file)
@@ -26,7 +26,7 @@ class PermissionCheck implements EventSubscriberInterface {
    */
   public static function getSubscribedEvents() {
     return [
-      Events::AUTHORIZE => [
+      'civi.api.authorize' => [
         ['onApiAuthorize', Events::W_LATE],
       ],
     ];