feat: file permission.

This commit is contained in:
2026-04-28 21:09:27 +08:00
parent f6c06bd7ad
commit 641703ca69
5 changed files with 53 additions and 1 deletions
+4
View File
@@ -29,6 +29,10 @@ func RequireStepTrainingAccess() gin.HandlerFunc {
c.Abort()
return
}
if role == models.UserRoleSuperAdmin {
c.Next()
return
}
flavorValue, exists := c.Get("flavorType")
if !exists {