瀏覽代碼

checkAuthGetObject 2

shiqian 4 年之前
父節點
當前提交
19fa162afb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

+ 2 - 2
boman-web-core/src/main/java/com/boman/web/core/service/TableServiceCmdService.java

@@ -302,8 +302,8 @@ public class TableServiceCmdService {
         }
 
         // 权限
-        if (checkAuthGetObject(genTable, id)) {
-            throw new NoSuchFunctionException("此模块:[" + genTable.getFunctionName() + "], 无根据id获取功能");
+        if (checkAuthGetObject (genTable, id)) {
+            throw new NoSuchFunctionException("不好意思,您无权限操作该条数据");
         }
 
         // 默认查所有字段,不支持自定义