OpenTreeMap / otm-core

OpenTreeMap is a collaborative platform for crowdsourced tree inventory, ecosystem services calculations, urban forestry analysis, and community engagement.
www.opentreemap.org
Other
188 stars 87 forks source link

Update map_feature_is_writable to check tree permissions #3209

Closed jwalgran closed 7 years ago

jwalgran commented 7 years ago

This addresses an edge case where a role has permission to add trees but not add plots.

I made use of a helper function to check tree creatability so I renamed it from map_feature_is_creatable to model_is_creatable.


Testing


Connects to #2856

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.02%) to 83.87% when pulling fa5200d627268be42113930014c7601d9e500bbc on jwalgran:feature/update-plot-writable-check into 52a89f63dcaae2c0235c9376f2a1d170b757eaa5 on OpenTreeMap:develop.