* getXmindImport,showXmindImport,saveXmindImport use importXmind permission.

This commit is contained in:
zhaoke
2023-04-18 15:41:38 +08:00
parent 4bcd11acd3
commit 186d901af7
3 changed files with 7 additions and 7 deletions
+3
View File
@@ -3208,6 +3208,7 @@ class testcase extends control
*/
public function getXmindImport()
{
if(!commonModel::hasPriv("testcase", "importXmind")) $this->loadModel('common')->deny('testcase', 'importXmind');
$folder = $this->session->xmindImport;
$type = $this->session->xmindImportType;
@@ -3407,6 +3408,7 @@ class testcase extends control
*/
public function saveXmindImport()
{
if(!commonModel::hasPriv("testcase", "importXmind")) $this->loadModel('common')->deny('testcase', 'importXmind');
if(!empty($_POST))
{
$result = $this->testcase->saveXmindImport();
@@ -3426,6 +3428,7 @@ class testcase extends control
*/
public function showXMindImport($productID,$branch)
{
if(!commonModel::hasPriv("testcase", "importXmind")) $this->loadModel('common')->deny('testcase', 'importXmind');
$product = $this->product->getById($productID);
$branches = (isset($product->type) and $product->type != 'normal') ? $this->loadModel('branch')->getPairs($productID, 'active') : array();
$config = $this->testcase->getXmindConfig();