mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix CleanupTestDatabasesTask permission failure response
This commit is contained in:
parent
ecc9d6be01
commit
88321f5d56
@ -13,7 +13,7 @@ class CleanupTestDatabasesTask extends BuildTask {
|
||||
|
||||
public function run($request) {
|
||||
if(!Permission::check('ADMIN') && !Director::is_cli()) {
|
||||
$response = Security::permissionFailure($this);
|
||||
$response = Security::permissionFailure();
|
||||
if($response) {
|
||||
$response->output();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user