Fix CleanupTestDatabasesTask permission failure response

This commit is contained in:
Loz Calver 2016-05-23 17:11:52 +01:00
parent ecc9d6be01
commit 88321f5d56
No known key found for this signature in database
GPG Key ID: F91FFC2D7E0CAEDB

View File

@ -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();
}