* fix error.

This commit is contained in:
z
2020-08-06 17:21:39 +08:00
parent d1d918334a
commit 9d7a93bda5
+1
View File
@@ -229,6 +229,7 @@ class testsuite extends control
}
else
{
$suite = $this->testsuite->getById($suiteID);
if($suite->type == 'private' and $suite->addedBy != $this->app->user->account and !$this->app->user->admin) die(js::error($this->lang->error->accessDenied) . js::locate('back'));
$this->testsuite->delete($suiteID);