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
Branches develop
No related tags found
No related merge requests found
......@@ -229,8 +229,11 @@ function initWeatherStations()
// Fetching information asynchronously from server
var request = $.ajax({
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",
beforeSend: function(xhr) {
if(settings.userUuid == null)
{
......@@ -238,7 +241,7 @@ function initWeatherStations()
}
const uuid = settings.userUuid; // Replace with your actual UUID
xhr.setRequestHeader('Authorization', `${uuid}`);
},
},*/
statusCode:{
200: function(data,textStatus, jqXHR){
// Building result HTML
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment