| Total Complexity | 0 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class InheritedPermissionsExtension extends DataExtension |
||
| 17 | { |
||
| 18 | private static $db = [ |
||
|
|
|||
| 19 | 'CanViewType' => "Enum('Anyone, LoggedInUsers, OnlyTheseUsers, Inherit', 'Inherit')", |
||
| 20 | 'CanEditType' => "Enum('LoggedInUsers, OnlyTheseUsers, Inherit', 'Inherit')", |
||
| 21 | ]; |
||
| 22 | |||
| 23 | private static $many_many = [ |
||
| 24 | 'ViewerGroups' => Group::class, |
||
| 25 | 'EditorGroups' => Group::class, |
||
| 26 | ]; |
||
| 27 | |||
| 28 | private static $defaults = [ |
||
| 29 | 'CanViewType' => InheritedPermissions::INHERIT, |
||
| 30 | 'CanEditType' => InheritedPermissions::INHERIT, |
||
| 31 | ]; |
||
| 33 |