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

Method putRole

rest/admin_api.go:1915–1918  ·  view source on GitHub ↗

Handles PUT or POST to /_role/*

()

Source from the content-addressed store, hash-verified

1913
1914// Handles PUT or POST to /_role/*
1915func (h *handler) putRole() error {
1916 rolename := mux.Vars(h.rq)["name"]
1917 return h.updatePrincipal(rolename, false)
1918}
1919
1920func (h *handler) deleteUser() error {
1921 h.assertAdminOnly()

Callers

nothing calls this directly

Calls 1

updatePrincipalMethod · 0.95

Tested by

no test coverage detected