access control
This commit is contained in:
parent
cbd68b72fc
commit
aa199b18c2
@ -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 = {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user