diff options
Diffstat (limited to 'app/maps/application_map.rb')
| -rw-r--r-- | app/maps/application_map.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/maps/application_map.rb b/app/maps/application_map.rb index e068a8950..d06a7e640 100644 --- a/app/maps/application_map.rb +++ b/app/maps/application_map.rb @@ -20,10 +20,8 @@ class ApplicationMap end def geoportail_key - if ( self.helpers && self.helpers.current_user && - self.helpers.current_user.organisation && - self.helpers.current_user.organisation.geoportail_key) - return self.helpers.current_user.organisation.geoportail_key + if ( ChouetteIhm::Application.config.respond_to? :geoportail_api_key) + return ChouetteIhm::Application.config.geoportail_api_key end return nil end |
