mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-07 16:20:28 +08:00
feat: fix GetAllActions()'s bug (#3289)
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user