diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index d5da65a9..775fe36a 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -999,6 +999,13 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid } } + /** + * @deprecated 3.0 Use prepopulate_permission_cache() instead + */ + static function prepopuplate_permission_cache($permission = 'CanEditType', $ids, $batchCallback = null) { + Deprecation::notice("3.0", "Use prepopulate_permission_cache instead."); + self::prepopulate_permission_cache($permission, $ids, $batchCallback); + } /** * Pre-populate the cache of canEdit, canView, canDelete, canPublish permissions.