diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index bf12f086..f63aedc1 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -2100,8 +2100,10 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi } } + $inheritMessage = $this->ParentID !== 0 ? _t(__CLASS__.'.INHERITPARENT', "Inherit from parent page") : _t(__CLASS__.'.INHERITSITECONFIG', "Inherit from site access settings"); + $viewersOptionsSource = [ - InheritedPermissions::INHERIT => _t(__CLASS__.'.INHERIT', "Inherit from parent page"), + InheritedPermissions::INHERIT => $inheritMessage, InheritedPermissions::ANYONE => _t(__CLASS__.'.ACCESSANYONE', "Anyone"), InheritedPermissions::LOGGED_IN_USERS => _t(__CLASS__.'.ACCESSLOGGEDIN', "Logged-in users"), InheritedPermissions::ONLY_THESE_USERS => _t( diff --git a/lang/en.yml b/lang/en.yml index 05bf2ec6..18ae44ea 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -204,7 +204,8 @@ en: Editors: 'Editors Groups' HASBROKENLINKS: 'This page has broken links.' HTMLEDITORTITLE: Content - INHERIT: 'Inherit from parent page' + INHERITPARENT: 'Inherit from parent page' + INHERITSITECONFIG: 'Inherit from site access settings' LASTPUBLISHED: 'Last published' LASTSAVED: 'Last saved' LASTUPDATED: 'Last Updated'