added access control to EnergyItem
parent
16c7e858fb
commit
6e53449439
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
app.controller('EnergyItemController', function($scope, $translate,$uibModal, CategoryService, EnergyItemService, toaster,SweetAlert) {
|
||||
app.controller('EnergyItemController', function($scope, $window, $translate,$uibModal, CategoryService, EnergyItemService, toaster,SweetAlert) {
|
||||
$scope.cur_user = JSON.parse($window.localStorage.getItem("myems_admin_ui_current_user"));
|
||||
$scope.getAllCategories = function() {
|
||||
CategoryService.getAllCategories(function (response) {
|
||||
|
|
Loading…
Reference in New Issue