mailbox: select group as owner
This commit is contained in:
@@ -2350,10 +2350,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.addMailbox = function (domain, name, userId, callback) {
|
||||
Client.prototype.addMailbox = function (domain, name, ownerId, ownerType, callback) {
|
||||
var data = {
|
||||
name: name,
|
||||
userId: userId
|
||||
ownerId: ownerId,
|
||||
ownerType: ownerType
|
||||
};
|
||||
|
||||
post('/api/v1/mail/' + domain + '/mailboxes', data, null, function (error, data, status) {
|
||||
@@ -2364,9 +2365,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.updateMailbox = function (domain, name, userId, callback) {
|
||||
Client.prototype.updateMailbox = function (domain, name, ownerId, ownerType, callback) {
|
||||
var data = {
|
||||
userId: userId
|
||||
ownerId: ownerId,
|
||||
ownerType: ownerType
|
||||
};
|
||||
|
||||
post('/api/v1/mail/' + domain + '/mailboxes/' + name, data, null, function (error, data, status) {
|
||||
|
||||
Reference in New Issue
Block a user