skyfffire 1 місяць тому
батько
коміт
47723af646

+ 2 - 3
src/main/java/modules/withdraw/WithdrawController.java

@@ -25,7 +25,6 @@ public class WithdrawController extends MyController {
     }
     
     @Before(LoginInterceptor.class)
-    @RequiredRoleInterface({UserController.ROLE_SUPER_ADMIN})
     @EmptyInterface({"amount"})
     public void create() {
         // 通过 MyController 获取解析后的 JSON 对象,拦截器也使用了这个方法
@@ -56,7 +55,7 @@ public class WithdrawController extends MyController {
     }
     
     @Before(LoginInterceptor.class)
-    @RequiredRoleInterface({UserController.ROLE_SUPER_ADMIN})
+    @RequiredRoleInterface({UserController.ROLE_CHECK_ADMIN})
     @EmptyInterface({"withdraw_sn"})
     public void pass() {
         JSONObject requestBodyJson = MyController.getJsonModelByRequestAndType(getRequest(), JSONObject.class);
@@ -86,7 +85,7 @@ public class WithdrawController extends MyController {
     }
 
     @Before(LoginInterceptor.class)
-    @RequiredRoleInterface({UserController.ROLE_SUPER_ADMIN})
+    @RequiredRoleInterface({UserController.ROLE_CHECK_ADMIN})
     @EmptyInterface({"withdraw_sn", "reason"})
     public void refuse() {
         JSONObject requestBodyJson = MyController.getJsonModelByRequestAndType(getRequest(), JSONObject.class);