silverstripe-cms/tests/model/SiteTreeActionsTest_Page.php
Damian Mooyman c2c75aa9e3
Fix and upgrade all tests
Fix link tracking
2017-06-21 16:29:40 +12:00

18 lines
432 B
PHP

<?php
use SilverStripe\Dev\TestOnly;
use SilverStripe\Security\Permission;
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');
}
}