[#2271] added dao.CanAccessRecord() helper

This commit is contained in:
Gani Georgiev
2023-06-14 13:13:21 +03:00
parent e99b0627d6
commit ec303a60ed
3 changed files with 176 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,3 @@
<<<<<<< HEAD
## v0.17.0-WIP
- Added Instagram OAuth2 provider ([#2534](https://github.com/pocketbase/pocketbase/pull/2534); thanks @pnmcosta).
@@ -26,10 +25,11 @@
- Added `subscriptions.Client.Unset()` helper to remove a single cached item from the client store.
- (@todo docs) Added query by filter record `Dao` helpers:
- (@todo docs) Added rule and filter record `Dao` helpers:
```
app.Dao().FindRecordsByFilter("posts", "title ~ 'lorem ipsum' && visible = true", "-created", 10)
app.Dao().FindFirstRecordByFilter("posts", "slug='test' && active=true")
app.Dao().CanAccessRecord(record, requestData, rule)
```
- (@todo docs) Added `Dao.WithoutHooks()` helper to create a new `Dao` from the current one but without the create/update/delete hooks.