mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix GetResources() missing items bug
This commit is contained in:
parent
463bacd53b
commit
21004f3009
@ -46,7 +46,7 @@ func GetResourceCount(owner, user, field, value string) (int64, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetResources(owner string, user string) ([]*Resource, error) {
|
func GetResources(owner string, user string) ([]*Resource, error) {
|
||||||
if owner == "built-in" {
|
if owner == "built-in" || owner == "" {
|
||||||
owner = ""
|
owner = ""
|
||||||
user = ""
|
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) {
|
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 = ""
|
owner = ""
|
||||||
user = ""
|
user = ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user