goodybag / cater-api-server

hacking this together as fast as possible but with an eye for re-organization
1 stars 0 forks source link

fix shared links when logged in #1072

Open prestonp opened 10 years ago

prestonp commented 10 years ago

planning on a large revamp for order item management

jrf0110 commented 10 years ago

Maybe we should support some sort of GB-AUTH-TOKEN header or something that would authenticate the request as a certain type of user (depending on the contents of the token). In a lot of places, we check for the presence of the edit_token or review_token to inform our templates. For instance, the /orders/:oid page does this. Instead, we should be relying on the type of user that is authenticated and the state of the order.