From 63ebc0007e9958bd6680c6841a7460b053275790 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 22 四月 2024 14:20:15 +0800
Subject: [PATCH] 将 @PreAuthorize 全部注释

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
index 1dd4efb..d719108 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java
@@ -50,7 +50,7 @@
     @Autowired
     private ISysUserService userService;
 
-    @PreAuthorize("@ss.hasPermi('system:role:list')")
+    // @PreAuthorize("@ss.hasPermi('system:role:list')")
     @GetMapping("/list")
     public TableDataInfo list(SysRole role)
     {
@@ -60,7 +60,7 @@
     }
 
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.EXPORT)
-    @PreAuthorize("@ss.hasPermi('system:role:export')")
+    // @PreAuthorize("@ss.hasPermi('system:role:export')")
     @GetMapping("/export")
     public AjaxResult export(SysRole role)
     {
@@ -72,7 +72,7 @@
     /**
      * 鏍规嵁瑙掕壊缂栧彿鑾峰彇璇︾粏淇℃伅
      */
-    @PreAuthorize("@ss.hasPermi('system:role:query')")
+    // @PreAuthorize("@ss.hasPermi('system:role:query')")
     @GetMapping(value = "/{roleId}")
     public AjaxResult getInfo(@PathVariable Long roleId)
     {
@@ -83,7 +83,7 @@
     /**
      * 鏂板瑙掕壊
      */
-    @PreAuthorize("@ss.hasPermi('system:role:add')")
+    // @PreAuthorize("@ss.hasPermi('system:role:add')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@Validated @RequestBody SysRole role)
@@ -104,7 +104,7 @@
     /**
      * 淇敼淇濆瓨瑙掕壊
      */
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:role:edit')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.UPDATE)
     @PostMapping("/edit")
     public AjaxResult edit(@Validated @RequestBody SysRole role)
@@ -138,7 +138,7 @@
     /**
      * 淇敼淇濆瓨鏁版嵁鏉冮檺
      */
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:role:edit')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.UPDATE)
     @PostMapping("/dataScope")
     public AjaxResult dataScope(@RequestBody SysRole role)
@@ -150,7 +150,7 @@
     /**
      * 鐘舵�佷慨鏀�
      */
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:role:edit')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.UPDATE)
     @PostMapping("/changeStatus")
     public AjaxResult changeStatus(@RequestBody SysRole role)
@@ -163,7 +163,7 @@
     /**
      * 鍒犻櫎瑙掕壊
      */
-    @PreAuthorize("@ss.hasPermi('system:role:remove')")
+    // @PreAuthorize("@ss.hasPermi('system:role:remove')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.DELETE)
     @GetMapping("/remove/{roleIds}")
     public AjaxResult remove(@PathVariable Long[] roleIds)
@@ -174,7 +174,7 @@
     /**
      * 鑾峰彇瑙掕壊閫夋嫨妗嗗垪琛�
      */
-    @PreAuthorize("@ss.hasPermi('system:role:query')")
+    // @PreAuthorize("@ss.hasPermi('system:role:query')")
     @GetMapping("/optionselect")
     public AjaxResult optionselect()
     {
@@ -184,7 +184,7 @@
     /**
      * 鏌ヨ宸插垎閰嶇敤鎴疯鑹插垪琛�
      */
-    @PreAuthorize("@ss.hasPermi('system:role:list')")
+    // @PreAuthorize("@ss.hasPermi('system:role:list')")
     @GetMapping("/authUser/allocatedList")
     public TableDataInfo allocatedList(SysUser user)
     {
@@ -196,7 +196,7 @@
     /**
      * 鏌ヨ鏈垎閰嶇敤鎴疯鑹插垪琛�
      */
-    @PreAuthorize("@ss.hasPermi('system:role:list')")
+    // @PreAuthorize("@ss.hasPermi('system:role:list')")
     @GetMapping("/authUser/unallocatedList")
     public TableDataInfo unallocatedList(SysUser user)
     {
@@ -208,7 +208,7 @@
     /**
      * 鍙栨秷鎺堟潈鐢ㄦ埛
      */
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:role:edit')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.GRANT)
     @PostMapping("/authUser/cancel/cancelAuthUser")
     public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
@@ -219,7 +219,7 @@
     /**
      * 鎵归噺鍙栨秷鎺堟潈鐢ㄦ埛
      */
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:role:edit')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.GRANT)
     @PostMapping("/authUser/cancelAll/cancelAuthUserAll")
     public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
@@ -230,7 +230,7 @@
     /**
      * 鎵归噺閫夋嫨鐢ㄦ埛鎺堟潈
      */
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
+    // @PreAuthorize("@ss.hasPermi('system:role:edit')")
     @Log(title = "瑙掕壊绠$悊", businessType = BusinessType.GRANT)
     @PostMapping("/authUser/selectAll/selectAuthUserAll")
     public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)

--
Gitblit v1.9.3