feat: 权限管理按资源授权方式支持行列权限设置

This commit is contained in:
wangjiahao 2022-02-11 10:14:01 +08:00
parent 0d73961d86
commit 7a1e79e314

View File

@ -44,7 +44,7 @@ public class XAuthServer {
public List<XpackSysAuthDetail> authDetailsModel(@PathVariable String authType, @PathVariable String direction) {
AuthXpackService sysAuthService = SpringContextUtil.getBean(AuthXpackService.class);
List<XpackSysAuthDetail> authDetails = sysAuthService.searchAuthDetailsModel(authType);
if ("source".equals(direction) && authType.equalsIgnoreCase("dataset")) {
if (authType.equalsIgnoreCase("dataset")) {
XpackSysAuthDetail xpackSysAuthDetail = new XpackSysAuthDetail();
xpackSysAuthDetail.setPrivilegeName("i18n_auth_row_permission");
xpackSysAuthDetail.setPrivilegeType(20);