Source of file RestrictedPage.php
Size: 0,429 Bytes - Last Modified: 2021-12-23T10:34:03+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/RestrictedPage.php
1234567891011121314151617 | <?php /** * A helper for making pages restricted by allowing perm lookups * for pages to make use of the site config too * * @author marcus@silverstripe.com.au * @license BSD License http://silverstripe.org/bsd-license/ */ class RestrictedPage extends DataExtension { public function permissionSource() { return $this->owner->ParentID ? $this->owner->Parent() : SiteConfig::current_site_config(); } } |