X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FInvoke.php;h=e1fe43347cacaaaec56294fc6ee905f3e4cfa671;hb=b5a104e41f5250de860b532494fd869cbc5a61d5;hp=1dea4ae1e06cfba9174ecfa02518abd9f1af7443;hpb=13c1cf91881e22bbcc38024c645736a3fc6fad4a;p=civicrm-core.git diff --git a/CRM/Core/Invoke.php b/CRM/Core/Invoke.php index 1dea4ae1e0..e1fe43347c 100644 --- a/CRM/Core/Invoke.php +++ b/CRM/Core/Invoke.php @@ -456,8 +456,13 @@ class CRM_Core_Invoke { } } - $page = new CRM_Profile_Page_Listings(); - return $page->run(); + if ($secondArg == 'view' || empty($secondArg)) { + $page = new CRM_Profile_Page_Listings(); + return $page->run(); + } + + CRM_Utils_System::permissionDenied(); + return; } /** @@ -489,6 +494,9 @@ class CRM_Core_Invoke { // also cleanup module permissions $config->cleanupPermissions(); + // also rebuild word replacement cache + CRM_Core_BAO_WordReplacement::rebuild(); + CRM_Core_BAO_Setting::updateSettingsFromMetaData(); CRM_Core_Resources::singleton()->resetCacheCode(); @@ -499,7 +507,7 @@ class CRM_Core_Invoke { ) { CRM_Core_DAO::triggerRebuild(); } - + CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE); CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); } }