* getXmindImport,showXmindImport,saveXmindImport use importXmind permission.
This commit is contained in:
@@ -229,6 +229,9 @@ $config->openMethods[] = 'task.editteam';
|
||||
$config->openMethods[] = 'feedback.mergeproductmodule';
|
||||
$config->openMethods[] = 'zanode.nodelist';
|
||||
$config->openMethods[] = 'action.restoreStages';
|
||||
$config->openMethods[] = 'testcase.getXmindImport';
|
||||
$config->openMethods[] = 'testcase.showXMindImport';
|
||||
$config->openMethods[] = 'testcase.saveXmindImport';
|
||||
|
||||
$config->openModules = array();
|
||||
$config->openModules[] = 'install';
|
||||
|
||||
@@ -1098,10 +1098,7 @@ $lang->resource->testcase->batchChangeScene = 'batchChangeScene';
|
||||
$lang->resource->testcase->updateOrder = 'updateOrder';
|
||||
|
||||
$lang->resource->testcase->importXmind = 'importXmind';
|
||||
$lang->resource->testcase->saveXmindImport = 'saveXmindImport';
|
||||
$lang->resource->testcase->exportXmind = 'exportXmind';
|
||||
$lang->resource->testcase->getXmindImport = 'getXmindImport';
|
||||
$lang->resource->testcase->showXMindImport = 'showXMindImport';
|
||||
|
||||
$lang->testcase->methodOrder[0] = 'index';
|
||||
$lang->testcase->methodOrder[5] = 'browse';
|
||||
@@ -1142,10 +1139,7 @@ $lang->testcase->methodOrder[170] = 'changeScene';
|
||||
$lang->testcase->methodOrder[175] = 'batchChangeScene';
|
||||
$lang->testcase->methodOrder[180] = 'updateOrder';
|
||||
$lang->testcase->methodOrder[185] = 'importXmind';
|
||||
$lang->testcase->methodOrder[190] = 'getXmindImport';
|
||||
$lang->testcase->methodOrder[195] = 'showXMindImport';
|
||||
$lang->testcase->methodOrder[200] = 'exportXmind';
|
||||
$lang->testcase->methodOrder[205] = 'saveXmindImport';
|
||||
$lang->testcase->methodOrder[190] = 'exportXmind';
|
||||
|
||||
/* Test task. */
|
||||
$lang->resource->testtask = new stdclass();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user