mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Deprecating Permission::$declared_permissions and related methods/props
This commit is contained in:
parent
50dfe3ff27
commit
0703c1a94e
10
.upgrade.yml
10
.upgrade.yml
@ -1281,6 +1281,12 @@ warnings:
|
|||||||
message: 'Removed SilverStripe\ORM\FieldType\DBDate->day_before()'
|
message: 'Removed SilverStripe\ORM\FieldType\DBDate->day_before()'
|
||||||
'days_between()':
|
'days_between()':
|
||||||
message: 'Removed SilverStripe\ORM\FieldType\DBDate->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'
|
||||||
props:
|
props:
|
||||||
'class':
|
'class':
|
||||||
message: '$this->class access has been removed'
|
message: '$this->class access has been removed'
|
||||||
@ -1312,6 +1318,10 @@ warnings:
|
|||||||
replacement: 'writeJavascriptToBody'
|
replacement: 'writeJavascriptToBody'
|
||||||
'SilverStripe\Forms\Formfield->dontEscape':
|
'SilverStripe\Forms\Formfield->dontEscape':
|
||||||
message: 'FormField::$dontEscape has been removed. Escaping is now managed on a class by class basis.'
|
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:
|
functions:
|
||||||
'file_get_contents()':
|
'file_get_contents()':
|
||||||
message: 'Use new asset abstraction'
|
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
|
* Method to globally disable "strict" checking, which means a permission
|
||||||
* will be granted if the key does not exist at all.
|
* will be granted if the key does not exist at all.
|
||||||
*
|
*
|
||||||
|
* @deprecated 4.4.0..5.0.0
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $declared_permissions = null;
|
private static $declared_permissions = null;
|
||||||
@ -76,6 +77,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
|||||||
/**
|
/**
|
||||||
* Linear list of declared permissions in the system.
|
* Linear list of declared permissions in the system.
|
||||||
*
|
*
|
||||||
|
* @deprecated 4.4.0..5.0.0
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $declared_permissions_list = null;
|
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.
|
* Get a linear list of the permissions in the system.
|
||||||
*
|
*
|
||||||
* @return array Linear list of declared permissions in the system.
|
* @return array Linear list of declared permissions in the system.
|
||||||
|
* @deprecated 4.4.0..5.0.0
|
||||||
*/
|
*/
|
||||||
public static function get_declared_permissions_list()
|
public static function get_declared_permissions_list()
|
||||||
{
|
{
|
||||||
@ -673,6 +676,7 @@ class Permission extends DataObject implements TemplateGlobalProvider, Resettabl
|
|||||||
*
|
*
|
||||||
* @param string $perm Permission code
|
* @param string $perm Permission code
|
||||||
* @return string Label for the given permission, or the permission itself if the label doesn't exist
|
* @return string Label for the given permission, or the permission itself if the label doesn't exist
|
||||||
|
* @deprecated 4.4.0..5.0.0
|
||||||
*/
|
*/
|
||||||
public static function get_label_for_permission($perm)
|
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 $declared Nested structure of permissions.
|
||||||
* @param array $list List of permissions in the structure. The result will be
|
* @param array $list List of permissions in the structure. The result will be
|
||||||
* written to this array.
|
* written to this array.
|
||||||
|
* @deprecated 4.4.0..5.0.0
|
||||||
*/
|
*/
|
||||||
protected static function traverse_declared_permissions($declared, &$list)
|
protected static function traverse_declared_permissions($declared, &$list)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user