Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Clean up shot.js #2330

Merged
merged 11 commits into from Mar 10, 2017
Merged

Clean up shot.js #2330

merged 11 commits into from Mar 10, 2017

Conversation

ianb
Copy link
Contributor

@ianb ianb commented Mar 8, 2017

Fixes #2156
Remove leftover references to body/head DOM attributes

@ianb ianb mentioned this pull request Mar 8, 2017
4 tasks
@jaredhirsch jaredhirsch requested review from jaredhirsch and removed request for jaredhirsch March 8, 2017 23:35
@jaredhirsch
Copy link
Member

@fzzzy any chance you could review this one? I'm still a bit hesitant about reviewing wide-ranging changes to the page shot code

@fzzzy
Copy link
Contributor

fzzzy commented Mar 9, 2017

@6a68 yep, sure

Shot.get(req.backend, shotId).then((shot) => {
if (shot.deviceId !== req.deviceId) {
simpleResponse(res, "Not the owner", 403);
Shot.get(req.backend, shotId, req.deviceId).then((shot) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So since req.deviceId is getting passed in to get now, if the user doesn't own the shot, they just will get a 404 instead of 403 Not the owner, right?

@fzzzy
Copy link
Contributor

fzzzy commented Mar 10, 2017

Nice cleanup!

@fzzzy fzzzy merged commit 45ce04a into master Mar 10, 2017
@fzzzy fzzzy deleted the clean-up-shot-js branch March 10, 2017 04:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants