This commit is contained in:
@@ -36,7 +36,8 @@ export function processLogin(response) {
|
||||
authenticated: true,
|
||||
userId: Number(token.id),
|
||||
userName: token.name,
|
||||
roles: token["ayanova/roles"]
|
||||
roles: token["ayanova/roles"],
|
||||
userType: token["usertype"]
|
||||
});
|
||||
|
||||
//Initialize the application
|
||||
|
||||
@@ -694,12 +694,14 @@ export default function initialize() {
|
||||
window.$gz.role.hasRole([
|
||||
window.$gz.role.AUTHORIZATION_ROLES.CustomerFull,
|
||||
window.$gz.role.AUTHORIZATION_ROLES.CustomerLimited
|
||||
])
|
||||
]) &&
|
||||
(window.$gz.store.userType == 4 || window.$gz.store.userType == 5)
|
||||
) {
|
||||
//clear sublevel array
|
||||
sub = [];
|
||||
|
||||
//Set homePage in store to dashboard
|
||||
//Set homePage in store to customer csr for this user type
|
||||
|
||||
window.$gz.store.commit("setHomePage", "/customer-csr-list");
|
||||
|
||||
//CSR LIST subitem
|
||||
|
||||
Reference in New Issue
Block a user