-
Notifications
You must be signed in to change notification settings - Fork 5
docker and metadata improves #45
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
base: develop
Are you sure you want to change the base?
Conversation
I'm going to cherry pick the data directory improvements because I need to build off it but don't want to update it later. |
not sure if i got all the acls of the different notifications down rn, but it seems to be about right
@@ -13,5 +13,16 @@ export default defineEventHandler(async (h3) => { | |||
statusMessage: "Missing screenshot ID", | |||
}); | |||
|
|||
return await screenshotManager.delete(screenshotId); | |||
const result = await screenshotManager.get(screenshotId); |
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.
I think the auth check should happen in the screenshotManager.get(), and it returns undefined both on not found and not authorized. This avoids leaking information about screenshots that exist but we don't have access to.
No description provided.