From 68f2599cdd03244c5a695a4af5ab40022fc37fea Mon Sep 17 00:00:00 2001 From: Alexandro Uc Santos Date: Sat, 14 Dec 2024 18:10:35 -0600 Subject: [PATCH] validations of role store --- src/components/NavBar.vue | 12 ++++++++---- src/components/Sidebar.vue | 34 ++++++++++++++++++++++++++-------- src/views/CalendarView.vue | 13 ++++++++----- 3 files changed, 42 insertions(+), 17 deletions(-) diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 5a5a003..63a8b65 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -8,6 +8,8 @@ const auth = useAuthStore(); const noty = useNotificationsStore(); + const permission = auth.user.permissions; + const jobRole = auth.user.job_role; const { t } = useI18n() $(document).ready(function() { @@ -31,6 +33,8 @@ } noty.notifications = resp.data; } + + const roleCheck = 'store';