zhangchuanxing преди 1 седмица
родител
ревизия
2f317e6039
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  1. 8 2
      services/user.go

+ 8 - 2
services/user.go

@@ -835,11 +835,17 @@ func GetUserhasPermissionReportSelection(user *models.WxUserItem) (hasPermission
 			hasPermission = 1
 		} else {
 			if applyCount > 0 {
-				hasPermission = 3
+				hasPermission = 5
 			} else {
-				hasPermission = 4
+				hasPermission = 2
 			}
 		}
+	} else {
+		if applyCount > 0 {
+			hasPermission = 5
+		} else {
+			hasPermission = 4
+		}
 	}
 	return
 }