feat: fix GetAllActions()'s bug (#3289)

This commit is contained in:
liuaiolos 2024-10-16 21:55:06 +08:00 committed by GitHub
parent 7ae067e369
commit 6f1f93725e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -364,7 +364,7 @@ func GetAllActions(userId string) ([]string, error) {
res := []string{} res := []string{}
for _, enforcer := range enforcers { for _, enforcer := range enforcers {
items := enforcer.GetAllObjects() items := enforcer.GetAllActions()
res = append(res, items...) res = append(res, items...)
} }
return res, nil return res, nil