mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Fix GetResources() missing items bug
This commit is contained in:
@ -46,7 +46,7 @@ func GetResourceCount(owner, user, field, value string) (int64, error) {
|
||||
}
|
||||
|
||||
func GetResources(owner string, user string) ([]*Resource, error) {
|
||||
if owner == "built-in" {
|
||||
if owner == "built-in" || owner == "" {
|
||||
owner = ""
|
||||
user = ""
|
||||
}
|
||||
@ -61,7 +61,7 @@ func GetResources(owner string, user string) ([]*Resource, error) {
|
||||
}
|
||||
|
||||
func GetPaginationResources(owner, user string, offset, limit int, field, value, sortField, sortOrder string) ([]*Resource, error) {
|
||||
if owner == "built-in" {
|
||||
if owner == "built-in" || owner == "" {
|
||||
owner = ""
|
||||
user = ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user