Afform - support file uploads
[civicrm-core.git] / Civi / API / Subscriber / DynamicFKAuthorization.php
index 3aaa1a89c62ff064b2f8a74a01b7e03f6c87bc08..a4b92bd3ef92a8fcae781e6eedd446c770aad9b3 100644 (file)
@@ -174,9 +174,6 @@ class DynamicFKAuthorization implements EventSubscriberInterface {
       }
 
       if (isset($apiRequest['params']['entity_table'])) {
-        if (!\CRM_Core_DAO_AllCoreTables::isCoreTable($apiRequest['params']['entity_table'])) {
-          throw new \API_Exception("Unrecognized target entity table {$apiRequest['params']['entity_table']}");
-        }
         $this->authorizeDelegate(
           $apiRequest['action'],
           $apiRequest['params']['entity_table'],