raster-foundry / raster-foundry

The Raster Foundry web application.

Home Page:https://www.rasterfoundry.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add scope restriction to COG STAC exports

jisantuc opened this issue · comments

Problem description

Only Pro users can create STAC exports with COGs. We should add a new action type COGExport, a ScopedAction for Pro users, and another authorization check to STAC export creation after decoding.

We should also unit test that the GroundworkProUser scope resolution includes this action but the GroundworkUser scope does not, since the API integration test won't be able to provide a JSON body.