mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
21 lines
483 B
PHP
21 lines
483 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Model;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Security\Permission;
|
|
use Page;
|
|
|
|
class SiteTreeActionsTest_Page extends Page implements TestOnly
|
|
{
|
|
public function canEdit($member = null)
|
|
{
|
|
return Permission::checkMember($member, 'SiteTreeActionsTest_Page_CANEDIT');
|
|
}
|
|
|
|
public function canDelete($member = null)
|
|
{
|
|
return Permission::checkMember($member, 'SiteTreeActionsTest_Page_CANDELETE');
|
|
}
|
|
}
|