-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
project: user: create default project id #2163
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
60d135d
to
7058730
Compare
5b34aa4
to
a3433e1
Compare
484148f
to
409929b
Compare
b396dbd
to
dcb76d3
Compare
@@ -1477,4 +1500,51 @@ | |||
} | |||
); | |||
|
|||
app.post( | |||
"/migrate/userDefaultProject", | |||
authorizer({ anyAdmin: true }), |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
@@ -139,4 +139,47 @@ | |||
res.json(project); | |||
}); | |||
|
|||
app.patch("/:id", authorizer({}), async (req, res) => { |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
res.end(); | ||
}); | ||
|
||
app.delete("/:id", authorizer({}), async (req, res) => { |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work @gioelecerati 🎖️ I really like where it's heading, plus the mung
injection. I think it simplified a lot of things.
Added some inline comments, other than that I tried the following:
Test | Result |
---|---|
non-admin token /stream/<id> |
🆗 |
non-admin token /stream |
🚫 no projectId included |
non-admin token /asset/<id> |
🆗 |
non-admin token /asset |
🚫 no projectId included |
admin token /stream/<id> |
🚫 no projectId included |
admin token /stream |
🚫 no projectId included |
admin token /asset/<id> |
🚫 no projectId included |
admin token /asset |
🚫 no projectId included |
Could you please check? I think we should always include projectId
in the resource. I checked it in the box.
b2b50b4
to
b3b9eac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit c39df25.
This reverts commit d9fcb78.
This reverts commit e34ac4d.
This reverts commit eed03f8.
What does this pull request do? Explain your changes. (required)
Specific updates (required)
How did you test each of these updates (required)
Does this pull request close any open issues?
Screenshots (optional)
Checklist