Skip to content

Commit

Permalink
fix: delete test auth component [WTEL-3883]
Browse files Browse the repository at this point in the history
  • Loading branch information
lizacoma committed Feb 12, 2024
1 parent a8045ea commit e8daf12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 84 deletions.
6 changes: 2 additions & 4 deletions src/app/router/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router';
import CrmSections
from '@webitel/ui-sdk/src/enums/WebitelApplications/CrmSections.enum';
// import Auth from '@webitel/ui-sdk/src/modules/Userinfo/components/the-auth.vue';
import Auth from '../../auth-test.vue';
import Auth from '@webitel/ui-sdk/src/modules/Userinfo/components/the-auth.vue';
import store from '../store';
import TheCrmWorkspace from '../components/the-crm-workspace.vue';
import TheContacts from '../../modules/contacts/components/the-contacts.vue';
Expand All @@ -28,7 +27,7 @@ const checkAppAccess = (to, from, next) => {
const checkRouteAccess = ((to, from, next) => {
// has Role Section Access AND (Select role permissions || ObAC permissions access)
const hasReadAccess = store.getters['userinfo/CHECK_OBJECT_ACCESS']({ route: to })
&& store.getters['userinfo/HAS_READ_ACCESS']({ name: 'contacts' });
&& store.getters['userinfo/HAS_READ_ACCESS']({ name: 'contacts' });
if (hasReadAccess) {
next();
} else {
Expand Down Expand Up @@ -87,7 +86,6 @@ const routes = [
},
];


const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
scrollBehavior() {
Expand Down
80 changes: 0 additions & 80 deletions src/auth-test.vue

This file was deleted.

0 comments on commit e8daf12

Please sign in to comment.