Преглед на файлове

fix(Station/Users): Using userAuth store hasPermissions

Owen Diffey преди 2 години
родител
ревизия
0b2e21aea3
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      frontend/src/pages/Station/Sidebar/Users.vue

+ 1 - 2
frontend/src/pages/Station/Sidebar/Users.vue

@@ -12,7 +12,6 @@ import Toast from "toasters";
 import { storeToRefs } from "pinia";
 import { useWebsocketsStore } from "@/stores/websockets";
 import { useStationStore } from "@/stores/station";
-import { useUserAuthStore } from "@/stores/userAuth";
 
 const ProfilePicture = defineAsyncComponent(
 	() => import("@/components/ProfilePicture.vue")
@@ -60,7 +59,7 @@ const nextPageResultsCount = computed(() =>
 	Math.min(search.pageSize, resultsLeftCount.value)
 );
 
-const { hasPermission } = useUserAuthStore();
+const { hasPermission } = stationStore;
 
 const copyToClipboard = async () => {
 	try {