Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function UsersRovokeRole(name, role, callback) {
xhr.del("user/" + encodeURIComponent(name) + "/role/" + encodeURIComponent(role), withAuth(), handler(callback))
}
function KVDelete(path, callback) {
xhr.del("kv" + path, withAuth(), handler(callback))
}
function RolesDeletePerm(name, key, rangeEnd, callback) {
let bodyStr = JSON.stringify({ key: key, range_end: rangeEnd })
xhr.del("role/" + encodeURIComponent(name) + "/permission", withAuth({ body: bodyStr }), handler(callback))
}
function UsersDelete(name, callback) {
xhr.del("user/" + encodeURIComponent(name), withAuth(), handler(callback))
}
function RolesDelete(name, callback) {
xhr.del("role/" + encodeURIComponent(name), withAuth(), handler(callback))
}