access control

This commit is contained in:
venbatechnologies@gmail.com 2018-08-14 14:34:02 +05:30
parent cbd68b72fc
commit aa199b18c2
2 changed files with 6 additions and 5 deletions

View File

@ -13,9 +13,9 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
};
$scope.initHead = function() {
// alert();
var localDetail = JSON.parse(localStorage.getItem('localObj'));
const LOCALTYPE = localDetail.localType;
//console.log(LOCALTYPE)
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
}else {
if((localDetail != null) && (LOCALTYPE !='R001')) {
@ -26,7 +26,6 @@ app.controller('report_expenseCtrl', ["$scope", "API_POINTS", "$http", "SweetAle
$state.go('login.signin');
}
}
}
$scope.filters = function () {
var filterlist = {

View File

@ -24,9 +24,11 @@ app.controller('report_leadCtrl', ["$scope", "$filter","$rootScope","$modal", "A
$scope.init = function() {
// $scope.init = function() {
// alert();
var localDetail = JSON.parse(localStorage.getItem('localObj'));
const LOCALTYPE = localDetail.localType;
//console.log(LOCALTYPE)
if (localDetail != null && (LOCALTYPE == 'R003' || LOCALTYPE == 'R004' )) {
}else {
if((localDetail != null) && (LOCALTYPE !='R001')) {
@ -37,7 +39,7 @@ app.controller('report_leadCtrl', ["$scope", "$filter","$rootScope","$modal", "A
$state.go('login.signin');
}
}
}
// }
//get current date
$scope.hideDateSearch=true;