Skip to content

Commit 59d3e70

Browse files
committed
redirecting to change password page for admin authorizes pages
1 parent 2367bb1 commit 59d3e70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/scripts/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ var nmsReportsApp = angular.module('nmsReports', ['vcRecaptcha','ui.bootstrap',
8484
abstract: true,
8585
templateUrl: 'views/userManagement.html',
8686
resolve : {
87-
user : function (authorizationRole) {
88-
return authorizationRole.authorize();
87+
user : function (authorizationRole,authorization){
88+
if(authorization.authorize()){
89+
return authorizationRole.authorize();
90+
}
8991
}
9092
}
9193
}).state('userManagement.bulkUpload', {

0 commit comments

Comments
 (0)