mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8558 from open-sausages/pulls/4/deprecating-declared-permissions
API Deprecating Permission::$declared_permissions and related methods/props
This commit is contained in:
commit
3d5c330e17
10
.upgrade.yml
10
.upgrade.yml
@ -1284,6 +1284,12 @@ warnings:
|
||||
message: 'Removed SilverStripe\ORM\FieldType\DBDate->day_before()'
|
||||
'days_between()':
|
||||
message: 'Removed SilverStripe\ORM\FieldType\DBDate->days_between()'
|
||||
'SilverStripe\Security\Permission::get_declared_permissions_list()':
|
||||
message: 'Deprecated'
|
||||
'SilverStripe\Security\Permission::get_label_for_permission()':
|
||||
message: 'Deprecated'
|
||||
'SilverStripe\Security\Permission::traverse_declared_permissions()':
|
||||
message: 'Deprecated'
|
||||
'SilverStripe\Control\Session::get_all()':
|
||||
message: 'Session can not be accessed statically and `get_all()` is now called `getAll()'
|
||||
'SilverStripe\Control\Session::clear_all()':
|
||||
@ -1319,6 +1325,10 @@ warnings:
|
||||
replacement: 'writeJavascriptToBody'
|
||||
'SilverStripe\Forms\Formfield->dontEscape':
|
||||
message: 'FormField::$dontEscape has been removed. Escaping is now managed on a class by class basis.'
|
||||
'SilverStripe\Security\Permission::$declared_permissions':
|
||||
message: 'Deprecated'
|
||||
'SilverStripe\Security\Permission::$declared_permissions_list':
|
||||
message: 'Deprecated'
|
||||
functions:
|
||||
'file_get_contents()':
|
||||
message: 'Use new asset abstraction'
|
||||
|
@ -69,6 +69,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
||||
* Method to globally disable "strict" checking, which means a permission
|
||||
* will be granted if the key does not exist at all.
|
||||
*
|
||||
* @deprecated 4.4.0
|
||||
* @var array
|
||||
*/
|
||||
private static $declared_permissions = null;
|
||||
@ -76,6 +77,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
||||
/**
|
||||
* Linear list of declared permissions in the system.
|
||||
*
|
||||
* @deprecated 4.4.0
|
||||
* @var array
|
||||
*/
|
||||
private static $declared_permissions_list = null;
|
||||
@ -650,6 +652,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
||||
* Get a linear list of the permissions in the system.
|
||||
*
|
||||
* @return array Linear list of declared permissions in the system.
|
||||
* @deprecated 4.4.0
|
||||
*/
|
||||
public static function get_declared_permissions_list()
|
||||
{
|
||||
@ -673,6 +676,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
||||
*
|
||||
* @param string $perm Permission code
|
||||
* @return string Label for the given permission, or the permission itself if the label doesn't exist
|
||||
* @deprecated 4.4.0
|
||||
*/
|
||||
public static function get_label_for_permission($perm)
|
||||
{
|
||||
@ -690,6 +694,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
||||
* @param array $declared Nested structure of permissions.
|
||||
* @param array $list List of permissions in the structure. The result will be
|
||||
* written to this array.
|
||||
* @deprecated 4.4.0
|
||||
*/
|
||||
protected static function traverse_declared_permissions($declared, &$list)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user