joie / joie-web-app

Joie pairs you with world-class teachers to help you build a healthier and happier life – one step at a time.
https://joie.co
0 stars 0 forks source link

Session publication #166

Closed yinonov closed 3 years ago

yinonov commented 3 years ago

Is your feature request related to a problem? Please describe. There's no filter of draft / public session and all new sessions appear in sessions list

Describe alternatives you've considered Store publish sessions in a new collection (publishSessions) to control rules more securely

Additional context

Once a session is set to public it should no longer be possible to edit the session freely. However, updating a public session, would be enabled by a firebase cloud callable function where the user ownership will be checked along with validation of only allowed props (should maintain allow list).

deletion of public session should only be available if:

Session list should only display public sessions (excluding owners, which should be able to view their drafts as well)