mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-19 13:52:23 +01:00
This feature introduces a breaking change, that restricts the User's that can create/edit/delete Articles to only those that have the `admin` Role. Fixed ESLint issues. Resolved merge conflicts, and moved new client Article Service `createOrUpdate` functionality to new Admin feature controller. Removed edit functionality from client-side Article controller.
19 lines
389 B
JavaScript
19 lines
389 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('articles')
|
|
.controller('ArticlesController', ArticlesController);
|
|
|
|
ArticlesController.$inject = ['$scope', 'articleResolve', 'Authentication'];
|
|
|
|
function ArticlesController($scope, article, Authentication) {
|
|
var vm = this;
|
|
|
|
vm.article = article;
|
|
vm.authentication = Authentication;
|
|
vm.error = null;
|
|
|
|
}
|
|
}());
|