|
@@ -10,6 +10,8 @@ import {
|
|
|
import {computed, ref, Ref} from "@vue/reactivity";
|
|
import {computed, ref, Ref} from "@vue/reactivity";
|
|
|
import {useOrganizationProfileStore} from "~/stores/organizationProfile";
|
|
import {useOrganizationProfileStore} from "~/stores/organizationProfile";
|
|
|
import RoleUtils from "~/services/rights/roleUtils";
|
|
import RoleUtils from "~/services/rights/roleUtils";
|
|
|
|
|
+import AbilityBuilder from "~/services/rights/abilityBuilder";
|
|
|
|
|
+import {ability} from "~/plugins/ability";
|
|
|
|
|
|
|
|
export const useAccessProfileStore = defineStore('accessProfile', () => {
|
|
export const useAccessProfileStore = defineStore('accessProfile', () => {
|
|
|
|
|
|
|
@@ -130,8 +132,8 @@ export const useAccessProfileStore = defineStore('accessProfile', () => {
|
|
|
setFamilyAccesses(profile.familyAccesses)
|
|
setFamilyAccesses(profile.familyAccesses)
|
|
|
|
|
|
|
|
// Time to set Organization Profile
|
|
// Time to set Organization Profile
|
|
|
- const organizationProfileStore = useOrganizationProfileStore()
|
|
|
|
|
- organizationProfileStore.setProfile(profile.organization)
|
|
|
|
|
|
|
+ const organizationProfile = useOrganizationProfileStore()
|
|
|
|
|
+ organizationProfile.setProfile(profile.organization)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const refreshProfile = (profile: any) => {
|
|
const refreshProfile = (profile: any) => {
|