MCPcopy
hub / github.com/pocketbase/pocketbase / ForbiddenError

Method ForbiddenError

tools/router/event.go:306–308  ·  view source on GitHub ↗
(message string, errData any)

Source from the content-addressed store, hash-verified

304}
305
306func (e *Event) ForbiddenError(message string, errData any) *ApiError {
307 return NewForbiddenError(message, errData)
308}
309
310func (e *Event) UnauthorizedError(message string, errData any) *ApiError {
311 return NewUnauthorizedError(message, errData)

Callers 15

TestEventForbiddenErrorFunction · 0.80
backupDownloadFunction · 0.80
runSQLFunction · 0.80
requireAuthFunction · 0.80
superuserIPsWhitelistFunction · 0.80
recordAuthWithOAuth2Function · 0.80
recordAuthResponseFunction · 0.80
recordRequestOTPFunction · 0.80
recordsListFunction · 0.80
recordViewFunction · 0.80

Calls 1

NewForbiddenErrorFunction · 0.70

Tested by 1

TestEventForbiddenErrorFunction · 0.64