Revert role support

This commit is contained in:
Girish Ramakrishnan
2018-07-26 11:38:20 -07:00
parent be86a3022f
commit 54103ca120
3 changed files with 6 additions and 76 deletions

View File

@@ -699,10 +699,9 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
}).error(defaultErrorHandler(callback));
};
Client.prototype.createGroup = function (name, roles, callback) {
Client.prototype.createGroup = function (name, callback) {
var data = {
name: name,
roles: roles
name: name
};
post('/api/v1/groups', data).success(function(data, status) {
@@ -711,10 +710,9 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
}).error(defaultErrorHandler(callback));
};
Client.prototype.updateGroup = function (id, name, roles, callback) {
Client.prototype.updateGroup = function (id, name, callback) {
var data = {
name: name,
roles: roles
name: name
};
post('/api/v1/groups/' + id, data).success(function(data, status) {