Water-Systems-Management-UCM / Waterspout

Server side API for ag water optimization model runner
MIT License
2 stars 0 forks source link

Check URL on page load to see if app should set a different default organization #38

Open nickrsan opened 3 years ago

nickrsan commented 3 years ago

If someone loads a link with a model run in it, we should do the following on page load:

  1. Do a safe check on the page to see if they have access to that model run (probably wrap the model run in a v-if?)
  2. If they have access to the model run, but only in another one of their model areas, we should switch them to the other model area, or prompt them to switch - this would require a request to the API in its current form - should we sparsely populate model runs instead??
  3. If they don't have access still, display an error message