mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-07 16:20:28 +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
|
||||
err := json.Unmarshal(body, &obj)
|
||||
if err != nil {
|
||||
return "", "", err
|
||||
// this is not error
|
||||
return "", "", nil
|
||||
}
|
||||
|
||||
if path == "/api/delete-resource" {
|
||||
|
Reference in New Issue
Block a user