Revert role support
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user