Move stuff out of Page.php into ContentController so they aren't needed at default install

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39074 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-07-20 04:05:51 +00:00
parent 78ee5b5d30
commit fccd958077
1 changed files with 12 additions and 8 deletions

View File

@ -96,15 +96,19 @@ class ContentController extends Controller {
// Check permissions
if($this->dataRecord && !$this->dataRecord->can('View')) Security::permissionFailure($this);
// Test/dev sites can only be accessed by CMS users
/* This is calling login errors in parents. inc.
if(!Director::isLive()) {
$member = Member::currentUser();
if(!$member || !$member->isCMSUser()) Security::permissionFailure($this);
}
*/
Requirements::themedCSS("layout");
Requirements::themedCSS("typography");
}
/**
* Get the project name
*
* @return string
*/
function project() {
global $project;
return $project;
}
/**