MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / isReadOnlyGuest

Method isReadOnlyGuest

rest/doc_api.go:924–929  ·  view source on GitHub ↗

helper for read only check

()

Source from the content-addressed store, hash-verified

922
923// helper for read only check
924func (h *handler) isReadOnlyGuest() bool {
925 if h.db.IsGuestReadOnly() && h.db.User() != nil && h.db.User().Name() == "" {
926 return true
927 }
928 return false
929}

Callers 5

handlePutAttachmentMethod · 0.95
handlePutDocMethod · 0.95
handlePostDocMethod · 0.95

Calls 3

IsGuestReadOnlyMethod · 0.80
NameMethod · 0.65
UserMethod · 0.45

Tested by

no test coverage detected