-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Currently, all newly-created File Cards are set to "public" mode and accessible at
/cards/embed/?id={CARD_ID}
This feature will enable private/public access to the File Cards similar to published/unpublished Posts, #111.
- Add a
published(boolean) property in Card #85 items - After adding the
publishedproperty, a Card withpublished=falsewill- For public viewers:
- Display a "Not Found" text message
- Have its thumbnail picture [1] and upload file [2] inaccessible from the Firebase Storage URL and its Web APIs
- Have its Card [3] item inaccessible from the Firestore Web APIs
- For File Card creators/owners:
- Card, thumbnail picture and upload file should be accessible if they are signed in to their accounts
- For public viewers:
- Only Cards with a
published=trueproperty will be accessible for public viewing via URL and Firebase Storage APIs
Important
- Update the project's Firestore Rules and Firebase Storage Rules to securely reflect these restrictions
- Insert the
publishedproperty to existing File Cards
Metadata
Metadata
Assignees
Labels
No labels