mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
feat: fix wrong error alert in ApiFilter's getObject()
This commit is contained in:
parent
0b8be016c5
commit
adc63ea726
@ -106,7 +106,8 @@ func getObject(ctx *context.Context) (string, string, error) {
|
|||||||
var obj Object
|
var obj Object
|
||||||
err := json.Unmarshal(body, &obj)
|
err := json.Unmarshal(body, &obj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", err
|
// this is not error
|
||||||
|
return "", "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if path == "/api/delete-resource" {
|
if path == "/api/delete-resource" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user