fixes to cli

This commit is contained in:
Wyatt Johnson
2017-11-20 13:29:50 -07:00
parent 2706e47f85
commit 45e27fd6ad
3 changed files with 5 additions and 32 deletions
-7
View File
@@ -289,13 +289,6 @@ function mergeUsers(dstUserID, srcUserID) {
* @param {String} role the role to add
*/
function addRole(userID, role) {
if (USER_ROLES.indexOf(role) === -1) {
console.error(`Role '${role}' is not supported. Supported roles are ${USER_ROLES.join(', ')}.`);
util.shutdown(1);
return;
}
UsersService
.addRoleToUser(userID, role)
.then(() => {