mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-05 14:09: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.
18 lines
344 B
JavaScript
18 lines
344 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
// Configuring the Articles Admin module
|
|
angular
|
|
.module('articles.admin')
|
|
.run(menuConfig);
|
|
|
|
menuConfig.$inject = ['menuService'];
|
|
|
|
function menuConfig(Menus) {
|
|
Menus.addSubMenuItem('topbar', 'admin', {
|
|
title: 'Manage Articles',
|
|
state: 'admin.articles.list'
|
|
});
|
|
}
|
|
}());
|