Commit a6593e14 by zhaochengxiang

资产增加数据安全

parent ccb32f52
......@@ -118,6 +118,7 @@ const AssetAction = (props) => {
payload: {
dataAssetId: id,
dirId: dirId,
checkPermission: readOnly
},
callback: data => {
setLoading(false);
......
......@@ -38,7 +38,8 @@ const AssetDetail = (props)=>{
type: 'assetmanage.getDataAssetDetail',
payload: {
dataAssetId: id,
dirId: dirId||''
dirId: dirId||'',
checkPermission: true
},
callback: data => {
setLoading(false);
......
......@@ -389,8 +389,12 @@ const AssetTable = (props) => {
let url = 'assetmanage.listDataAssetsByPage';
if (reference===AssetRecycleReference) {
url = 'assetmanage.listRecycleBinDataAssetsByPage';
} else if ((reference===AssetBrowseReference|| reference===ResourceBrowseReference) && nodeType==='custom' ) {
url = 'assetmanage.listDataAssetsByPersonalCustomType';
} else if ((reference===AssetBrowseReference|| reference===ResourceBrowseReference)) {
params.checkPermission = true;
if (nodeType === 'custom') {
url = 'assetmanage.listDataAssetsByPersonalCustomType';
}
}
dispatchLatestHomepage({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment