@@ -104,13 +104,13 @@ app.factory('BoardService', function(ApiService, $http, $q){
|
||||
}
|
||||
};
|
||||
|
||||
BoardService.prototype.addAcl = function(acl) {
|
||||
BoardService.prototype.addAcl = function (acl) {
|
||||
var board = this.getCurrent();
|
||||
var deferred = $q.defer();
|
||||
var self = this;
|
||||
var _acl = acl;
|
||||
$http.post(this.baseUrl + '/' + acl.boardId + '/acl', _acl).then(function (response) {
|
||||
if(!board.acl || board.acl.length === 0) {
|
||||
if (!board.acl || board.acl.length === 0) {
|
||||
board.acl = {};
|
||||
}
|
||||
board.acl[response.data.id] = response.data;
|
||||
|
||||
Reference in New Issue
Block a user