prospect
This commit is contained in:
@@ -132,7 +132,7 @@ func GenericLoadOne[T DBObject](id string, data T, f func(DBObject) (DBObject, i
|
||||
if err != nil {
|
||||
return nil, code, err
|
||||
}
|
||||
fmt.Println("APPLY", data)
|
||||
fmt.Println("APPLY", data, res_mongo)
|
||||
res_mongo.Decode(&data)
|
||||
if a.ShouldVerifyAuth() && !data.VerifyAuth("get", a.GetRequest()) {
|
||||
return nil, 403, errors.New("you are not allowed to access :" + a.GetType().String())
|
||||
|
||||
Reference in New Issue
Block a user