mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-01 01:50:20 +08:00
feat: fix wrong error alert in ApiFilter's getObject()
This commit is contained in:
@ -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" {
|
||||||
|
Reference in New Issue
Block a user