diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-06-09 16:14:40 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-06-23 19:23:42 +0300 |
commit | 70828a529bfbcd4c73885cb0ac1f2d869ecf0abf (patch) | |
tree | cf923125ba573fa7fb16d1cee6d8532f258e9e64 /map/place_page_info.cpp | |
parent | ccd5ee0bd8544e8cea4f52ea31174e9c2d492397 (diff) |
Disable old data editing.
Diffstat (limited to 'map/place_page_info.cpp')
-rw-r--r-- | map/place_page_info.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/map/place_page_info.cpp b/map/place_page_info.cpp index 2b94a56923..79ae971a90 100644 --- a/map/place_page_info.cpp +++ b/map/place_page_info.cpp @@ -16,9 +16,17 @@ bool Info::IsFeature() const { return m_featureID.IsValid(); } bool Info::IsBookmark() const { return m_bac != MakeEmptyBookmarkAndCategory(); } bool Info::IsMyPosition() const { return m_isMyPosition; } bool Info::HasApiUrl() const { return !m_apiUrl.empty(); } -bool Info::IsEditable() const { return m_isEditable; } +bool Info::IsEditable() const { return m_isEditable && m_isDataEditable; } +bool Info::IsDataEditable() const { return m_isDataEditable; } bool Info::HasWifi() const { return GetInternet() == osm::Internet::Wlan; } -bool Info::ShouldShowAddPlace() const { return !IsSponsoredHotel() && (!IsFeature() || (!IsPointType() && !IsBuilding())); } + +bool Info::ShouldShowAddPlace() const +{ + return !IsSponsoredHotel() && + (!IsFeature() || (!IsPointType() && !IsBuilding())) && + m_isDataEditable; +} + bool Info::IsSponsoredHotel() const { return m_isSponsoredHotel; } string Info::FormatNewBookmarkName() const |