提交 294030fd 编写于 作者: zhouweidong's avatar zhouweidong

serviceapi实体权限校验

上级 bb46d3f3
......@@ -696,7 +696,7 @@ public class ${itemCodeName}Resource {
<#comment>数据查询Security权限校验(分组不鉴权)</#comment>
<#macro DataQuerySecurityAnnotation dataset>
<#if (de.getStorageMode()==1 || de.getStorageMode()==2 ) && dataset.isEnableGroup()==false>
<#if (de.getStorageMode()==1 || de.getStorageMode()==2 ||deapide.getStorageMode()==4) && dataset.isEnableGroup()==false>
<#if hasDEPrefield==false>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-search${dataset.codeName}-all')")
<#else>
......@@ -707,7 +707,7 @@ public class ${itemCodeName}Resource {
<#comment>单条数据Security权限校验</#comment>
<#macro SecurityAnnotation deaction>
<#if de.getStorageMode()==1 || de.getStorageMode()==2>
<#if de.getStorageMode()==1 || de.getStorageMode()==2 ||deapide.getStorageMode()==4>
<#if hasDEPrefield==false>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-${deaction.codeName}-all')")
<#else>
......@@ -726,7 +726,7 @@ public class ${itemCodeName}Resource {
<#comment>批量数据Security权限校验</#comment>
<#macro SecurityBatchAnnotation deaction>
<#if de.getStorageMode()==1 || de.getStorageMode()==2>
<#if de.getStorageMode()==1 || de.getStorageMode()==2 ||deapide.getStorageMode()==4>
<#if hasDEPrefield==false>
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','${sys.codeName}-${de.codeName}-${deaction.codeName}-all')")
<#else>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册