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

Method assertAdminOnly

rest/handler.go:1228–1233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1226}
1227
1228func (h *handler) assertAdminOnly() {
1229 if h.privs != adminPrivs {
1230 // TODO: CBG-1948
1231 panic("Admin-only handler called without admin privileges, on " + h.rq.RequestURI)
1232 }
1233}
1234
1235func (h *handler) PathVar(name string) string {
1236 v := mux.Vars(h.rq)[name]

Calls

no outgoing calls

Tested by

no test coverage detected