1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-28 16:50:11 +02:00

added geoDistance docs and tests

This commit is contained in:
Gani Georgiev
2025-04-03 15:55:34 +03:00
parent d135b1e686
commit 2554192c06
4 changed files with 290 additions and 44 deletions

View File

@@ -453,7 +453,7 @@ func recordUpdate(optFinalizer func(data any) error) func(e *core.RequestEvent)
form.SetRecord(e.Record)
manageRuleQuery := e.App.DB().Select("(1)").From(e.Collection.Name).AndWhere(dbx.HashExp{
// note: use the original record id and not e.Record.Id because the record validations because may get overwritten
// note: use the original record id and not e.Record.Id because it may get overwritten
e.Collection.Name + ".id": e.Record.LastSavedPK(),
})
if !form.HasManageAccess() &&