Skip to content
Snippets Groups Projects
Commit 80e52ed5 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fix: Revert adding of private weather stations for authenticated user.

parent 5d1ae3a5
No related branches found
No related tags found
No related merge requests found
...@@ -229,8 +229,11 @@ function initWeatherStations() ...@@ -229,8 +229,11 @@ function initWeatherStations()
// Fetching information asynchronously from server // Fetching information asynchronously from server
var request = $.ajax({ var request = $.ajax({
type:"GET", type:"GET",
url: settings.userUuid == null ? settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/poi/organization/" + settings.vipsOrganizationId url: settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/poi/organization/" + settings.vipsOrganizationId,
/* WHEN private weather stations can be used for this model, uncomment this and replace the line above
url: settings.userUuid == null ? settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/poi/organization/" + settings.vipsOrganizationId
: settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/poi/weatherstation/user", : settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/poi/weatherstation/user",
beforeSend: function(xhr) { beforeSend: function(xhr) {
if(settings.userUuid == null) if(settings.userUuid == null)
{ {
...@@ -238,7 +241,7 @@ function initWeatherStations() ...@@ -238,7 +241,7 @@ function initWeatherStations()
} }
const uuid = settings.userUuid; // Replace with your actual UUID const uuid = settings.userUuid; // Replace with your actual UUID
xhr.setRequestHeader('Authorization', `${uuid}`); xhr.setRequestHeader('Authorization', `${uuid}`);
}, },*/
statusCode:{ statusCode:{
200: function(data,textStatus, jqXHR){ 200: function(data,textStatus, jqXHR){
// Building result HTML // Building result HTML
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment