Browse Source

bugfix - 审计文档操作权限问题

wangggziwen 8 months ago
parent
commit
6178d204d2

+ 5 - 5
rc-admin/src/main/java/com/ruoyi/web/controller/rc/TFileController.java

@@ -37,7 +37,7 @@ public class TFileController extends BaseController {
     /**
      * 查询附件列表
      */
-    @PreAuthorize("@ss.hasPermi('file:file:list')")
+//    @PreAuthorize("@ss.hasPermi('file:file:list')")
     @GetMapping("/list")
     public AjaxResult list(TFile tFile) {
         if (StringUtils.isEmpty(tFile.getLinkName())) {
@@ -51,7 +51,7 @@ public class TFileController extends BaseController {
     /**
      * 获取附件详细信息
      */
-    @PreAuthorize("@ss.hasPermi('file:file:query')")
+//    @PreAuthorize("@ss.hasPermi('file:file:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return AjaxResult.success(tFileService.selectTFileById(id));
@@ -60,7 +60,7 @@ public class TFileController extends BaseController {
     /**
      * 新增附件
      */
-    @PreAuthorize("@ss.hasPermi('file:file:add')")
+//    @PreAuthorize("@ss.hasPermi('file:file:add')")
     @Log(title = "附件", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TFile tFile) {
@@ -70,7 +70,7 @@ public class TFileController extends BaseController {
     /**
      * 修改附件
      */
-    @PreAuthorize("@ss.hasPermi('file:file:edit')")
+//    @PreAuthorize("@ss.hasPermi('file:file:edit')")
     @Log(title = "附件", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TFile tFile) {
@@ -80,7 +80,7 @@ public class TFileController extends BaseController {
     /**
      * 删除附件
      */
-    @PreAuthorize("@ss.hasPermi('file:file:remove')")
+//    @PreAuthorize("@ss.hasPermi('file:file:remove')")
     @Log(title = "附件", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {

+ 0 - 2
ruoyi-ui/src/views/rc/file/uploadFile.vue

@@ -22,7 +22,6 @@
           icon="el-icon-folder-add"
           size="mini"
           @click="handleAdd"
-          v-hasPermi="['file:file:add']"
         >新建文件夹
         </el-button>
       </el-col>
@@ -31,7 +30,6 @@
           type="primary"
           icon="el-icon-upload2"
           size="mini"
-          v-hasPermi="['file:file:add']"
           @click="handleAddFile"
         >上传文件
         </el-button>