Skip to content

Instantly share code, notes, and snippets.

@fabeat
Created November 8, 2011 20:02
Show Gist options
  • Save fabeat/1348985 to your computer and use it in GitHub Desktop.
Save fabeat/1348985 to your computer and use it in GitHub Desktop.
<?php
class Page extends SiteTree {
//...
function canPublish($Member = null)
{
if (Director::is_cli())
{
return true;
}
else
{
parent::canPublish($Member);
}
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment