Skip to content

Commit

Permalink
Improved: set permission for the user on initial load (#2ebg32y)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasharma7 committed Jun 10, 2022
1 parent e99954b commit 2baad0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { loadingController } from '@ionic/vue';
import { mapGetters, useStore } from 'vuex';
import emitter from "@/event-bus"
import { Settings } from 'luxon'
import { defineAbilityForUser } from '@/authorization'
export default defineComponent({
name: 'App',
components: {
Expand Down Expand Up @@ -90,6 +91,7 @@ export default defineComponent({
if (this.userProfile && this.userProfile.userTimeZone) {
Settings.defaultZone = this.userProfile.userTimeZone;
}
defineAbilityForUser(this.userProfile);
},
unmounted() {
emitter.off('presentLoader', this.presentLoader);
Expand Down

0 comments on commit 2baad0f

Please sign in to comment.