mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-14 18:18:14 +02:00
updated changelog formatting and temp moved the admin only rule checks to the record_helpers
This commit is contained in:
1 parent
98c8c98603
commit
b0f027d27a
5 files changed
+67
-48
No files matched your search
@@ -568,6 +568,10 @@ func (api *realtimeApi) canAccessRecord(
|
||||
return true // no further checks needed
|
||||
}
|
||||
|
||||
if err := checkForAdminOnlyRuleFields(requestInfo); err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
ruleFunc := func(q *dbx.SelectQuery) error {
|
||||
resolver := resolvers.NewRecordFieldResolver(api.app.Dao(), record.Collection(), requestInfo, false)
|
||||
|
||||
|
||||
Reference in new issue
Block a user