feat: change builtInMaxFields to 6 in Casbin policy length (#4130)

This commit is contained in:
Attack825
2025-08-29 22:39:39 +08:00
committed by GitHub
parent f26f56e88b
commit fbc16ef124
2 changed files with 14 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ type Permission struct {
State string `xorm:"varchar(100)" json:"state"`
}
const builtInAvailableField = 5 // Casdoor built-in adapter, use V5 to filter permission, so has 5 available field
const builtInMaxFields = 6 // Casdoor built-in adapter, use V5 to filter permission, so has 6 max field
func GetPermissionCount(owner, field, value string) (int64, error) {
session := GetSession(owner, -1, -1, field, value, "", "")