mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: fix GetAllActions()'s bug (#3289)
This commit is contained in:
parent
7ae067e369
commit
6f1f93725e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user