added access control to EnergyItem

pull/84/head
Caozhenhui 2021-11-30 10:07:12 +08:00
parent 16c7e858fb
commit 6e53449439
1 changed files with 1 additions and 1 deletions

View File

@ -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) {