2016-10-14 14:30:05 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Control\Tests\ControllerTest;
|
|
|
|
|
|
|
|
use SilverStripe\Control\Controller;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
|
|
|
class AccessBaseController extends Controller implements TestOnly
|
|
|
|
{
|
2017-03-25 00:17:26 +13:00
|
|
|
private static $allowed_actions = [];
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2017-03-02 15:24:38 +13:00
|
|
|
private static $url_segment = 'AccessBaseController';
|
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
private static $extensions = [
|
2017-03-25 00:17:26 +13:00
|
|
|
AccessBaseControllerExtension::class,
|
2016-12-16 17:34:21 +13:00
|
|
|
];
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
// Denied for all
|
|
|
|
public function method1()
|
|
|
|
{
|
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
|
2016-12-16 17:34:21 +13:00
|
|
|
// Denied for all
|
|
|
|
public function method2()
|
|
|
|
{
|
|
|
|
}
|
2016-10-14 14:30:05 +13:00
|
|
|
}
|