silverstripe-framework/tests/php/Security/MemberTest/EditingAllowedDeletingDeniedExtension.php
2024-08-27 15:39:20 +12:00

26 lines
462 B
PHP

<?php
namespace SilverStripe\Security\Tests\MemberTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataExtension;
class EditingAllowedDeletingDeniedExtension extends DataExtension implements TestOnly
{
protected function canView($member = null)
{
return true;
}
protected function canEdit($member = null)
{
return true;
}
protected function canDelete($member = null)
{
return false;
}
}