silverstripe-framework/tests/php/Security/MemberTest/EditingAllowedDeletingDeniedExtension.php
2024-08-28 17:00:39 +12:00

26 lines
455 B
PHP

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