mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Removed deprecated SiteTree::prepopuplate_permission_cache()
This function is misspelled, and was marked deprecated. This commit removes that function. Please use prepopulate_permission_cache() instead (note the removal of the extraneous "p" in "prepopuplate")
This commit is contained in:
parent
94b37dbeb0
commit
d236bb58eb
@ -998,14 +998,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
return SiteConfig::current_site_config();
|
return SiteConfig::current_site_config();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated 3.0 Use prepopulate_permission_cache() instead (without the extraneous "p" in "prepopulate")
|
|
||||||
*/
|
|
||||||
static public 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.
|
* Pre-populate the cache of canEdit, canView, canDelete, canPublish permissions.
|
||||||
* This method will use the static can_(perm)_multiple method for efficiency.
|
* This method will use the static can_(perm)_multiple method for efficiency.
|
||||||
|
Loading…
Reference in New Issue
Block a user