| 
														
															@@ -25,6 +25,7 @@ export const useUserAuthStore = defineStore("userAuth", { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		gotData: boolean; 
														 | 
														
														 | 
														
															 		gotData: boolean; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		gotPermissions: boolean; 
														 | 
														
														 | 
														
															 		gotPermissions: boolean; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		permissions: Record<string, boolean>; 
														 | 
														
														 | 
														
															 		permissions: Record<string, boolean>; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		stationPermissions: Record<string, Record<string, boolean>>; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	} => ({ 
														 | 
														
														 | 
														
															 	} => ({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		userIdMap: {}, 
														 | 
														
														 | 
														
															 		userIdMap: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		userIdRequested: {}, 
														 | 
														
														 | 
														
															 		userIdRequested: {}, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -41,7 +42,8 @@ export const useUserAuthStore = defineStore("userAuth", { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		gotData: false, 
														 | 
														
														 | 
														
															 		gotData: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		gotPermissions: false, 
														 | 
														
														 | 
														
															 		gotPermissions: false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-		permissions: {} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		permissions: {}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		stationPermissions: {} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	}), 
														 | 
														
														 | 
														
															 	}), 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	actions: { 
														 | 
														
														 | 
														
															 	actions: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		register(user: { 
														 | 
														
														 | 
														
															 		register(user: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -301,6 +303,21 @@ export const useUserAuthStore = defineStore("userAuth", { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				}); 
														 | 
														
														 | 
														
															 				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			}); 
														 | 
														
														 | 
														
															 			}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		}, 
														 | 
														
														 | 
														
															 		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		hasPermissionForStation(stationId: string, permission: string) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			return !!( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.stationPermissions[stationId] && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				this.stationPermissions[stationId][permission] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		updatePermissionsForStation(stationId: string) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			return new Promise(resolve => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				const { socket } = useWebsocketsStore(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				socket.dispatch("utils.getPermissions", stationId, res => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					this.stationPermissions[stationId] = res.data.permissions; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+					resolve(this.stationPermissions[stationId]); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		}, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		resetCookieExpiration() { 
														 | 
														
														 | 
														
															 		resetCookieExpiration() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			const cookies = {}; 
														 | 
														
														 | 
														
															 			const cookies = {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			document.cookie.split("; ").forEach(cookie => { 
														 | 
														
														 | 
														
															 			document.cookie.split("; ").forEach(cookie => { 
														 |