mirror of
https://github.com/silverstripe/recipe-cms.git
synced 2024-10-22 08:05:52 +02:00
Merge remote-tracking branch 'origin/1'
# Conflicts: # composer.json
This commit is contained in:
commit
f503cb70dc
@ -5,7 +5,7 @@
|
|||||||
"homepage": "http://silverstripe.org",
|
"homepage": "http://silverstripe.org",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"require": {
|
"require": {
|
||||||
"silverstripe/recipe-plugin": ">=0.1@dev <1.0",
|
"silverstripe/recipe-plugin": "^1",
|
||||||
"silverstripe/recipe-core": "2.x-dev",
|
"silverstripe/recipe-core": "2.x-dev",
|
||||||
"silverstripe/admin": "2.x-dev",
|
"silverstripe/admin": "2.x-dev",
|
||||||
"silverstripe/asset-admin": "2.x-dev",
|
"silverstripe/asset-admin": "2.x-dev",
|
||||||
|
@ -4,9 +4,7 @@ use SilverStripe\CMS\Model\SiteTree;
|
|||||||
|
|
||||||
class Page extends SiteTree
|
class Page extends SiteTree
|
||||||
{
|
{
|
||||||
private static $db = array(
|
private static $db = [];
|
||||||
);
|
|
||||||
|
|
||||||
private static $has_one = array(
|
private static $has_one = [];
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
@ -9,19 +9,17 @@ class PageController extends ContentController
|
|||||||
* permissions or conditions required to allow the user to access it.
|
* permissions or conditions required to allow the user to access it.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* array (
|
* [
|
||||||
* 'action', // anyone can access this action
|
* 'action', // anyone can access this action
|
||||||
* 'action' => true, // same as above
|
* 'action' => true, // same as above
|
||||||
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action
|
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action
|
||||||
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true
|
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true
|
||||||
* );
|
* ];
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $allowed_actions = array(
|
private static $allowed_actions = [];
|
||||||
|
|
||||||
);
|
|
||||||
|
|
||||||
protected function init()
|
protected function init()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user