Browse Source

fix(Station/Users): Using userAuth store hasPermissions

Owen Diffey 2 years ago
parent
commit
0b2e21aea3
1 changed files with 1 additions and 2 deletions
  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 {