mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Duplicate page keeps original pages canView and canEdit permission (#10806)
This commit is contained in:
parent
fd57f06755
commit
f88b7c3c2b
@ -15,18 +15,23 @@ use SilverStripe\ORM\ManyManyList;
|
||||
*/
|
||||
class InheritedPermissionsExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
private static array $db = [
|
||||
'CanViewType' => "Enum('Anyone, LoggedInUsers, OnlyTheseUsers, Inherit', 'Inherit')",
|
||||
'CanEditType' => "Enum('LoggedInUsers, OnlyTheseUsers, Inherit', 'Inherit')",
|
||||
];
|
||||
|
||||
private static $many_many = [
|
||||
private static array $many_many = [
|
||||
'ViewerGroups' => Group::class,
|
||||
'EditorGroups' => Group::class,
|
||||
];
|
||||
|
||||
private static $defaults = [
|
||||
private static array $defaults = [
|
||||
'CanViewType' => InheritedPermissions::INHERIT,
|
||||
'CanEditType' => InheritedPermissions::INHERIT,
|
||||
];
|
||||
|
||||
private static array $cascade_duplicates = [
|
||||
'ViewerGroups',
|
||||
'EditorGroups',
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user