Skip to content
Snippets Groups Projects
Commit d3857686 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

terms of use link is invalid

parent 2cbd7e88
No related branches found
No related tags found
1 merge request!314Terms of use issue
......@@ -87,14 +87,28 @@ Configuration.prototype.getGitHash = function () {
return this._gitHash;
};
/**
*
* @param {string} type
* @param {ConfigurationOption} value
*/
Configuration.prototype.setOption = function (type, value) {
this._options[type] = value;
};
/**
*
* @param {string} type
* @returns {ConfigurationOption}
*/
Configuration.prototype.getOption = function (type) {
return this._options[type];
};
/**
*
* @returns {Array}
*/
Configuration.prototype.getOptions = function () {
var self = this;
var result = [];
......
......@@ -411,7 +411,7 @@ function create(params) {
GuiConnector.alert("Some data overlays doesn't have consent to the terms of the <a href='https://cloud.google.com/maps-platform/terms/' target='_blank'>license of Google Maps Platform</a>. To be able to visualize them you must edit data overlay. ")
}
if (user.getLogin() !== "anonymous" && !user.isTermsOfUseConsent()) {
requestConsent(user, params.getConfiguration().getOption(ConfigurationType.TERMS_OF_USE));
requestConsent(user, params.getConfiguration().getOption(ConfigurationType.TERMS_OF_USE).getValue());
}
var result = {
destroy: function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment